Optional
onAttach?: StoreEventHandler<TState>Optional
onDetach?: StoreEventHandler<TState>Invoked when the store is unsubscribed from.
Optional
onLoad?: StoreEventHandler<TState>Invoked when the store is created.
Optional
onStateChange?: StoreEventHandler<TState>Invoked whenever the state changes.
Optional
resetOnDetach?: booleanWhether to reset the state to the initial state when the store is detached.
Invoked when the store is subscribed to.