Skip to main content

StateManagerInitArgs

Overview​

Type: interface

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

Properties​

  • currentState — The current state.
    Type: any
  • defaultState — The default state.
    Type: any
  • commit — Commits the state persisted from other sources such as the localStorage.
    Type: Function
  • commitNoop — Skips committing the state and lets the State Manager know that initialization has completed.
    Type: Function