Skip to main content

StateManagerInitArgs

Overview

Type: interface

Callback arguments provided in the .init callback / lifecycle hook.

Properties

  • currentStateThe current state.
    Type: any
  • defaultStateThe default state.
    Type: any
  • commitCommits the state persisted from other sources such as the localStorage.
    Type: Function
  • commitNoopSkips committing the state and lets the State Manager know that initialization has completed.
    Type: Function