Optional
onOptional
onInvoked when the store is unsubscribed from.
Optional
onInvoked when the store is created.
Optional
onInvoked whenever the state changes.
Optional
resetWhether to reset the state to the initial state when the store is detached.
Invoked when the store is subscribed to.