Initialise a Store with an initial RootState - any array, tuple or object. This state can be updated and monitored for updates to drive an app.
Ideally your State is defined as Immutable<State> to prevent inadvertent mutations to state, bypassing store.write())
State
Immutable<State>
store.write()
The initial RootState stored
Optional
A list of Watchers to be notified once and permanently subscribed
Initialise a Store with an initial RootState - any array, tuple or object. This state can be updated and monitored for updates to drive an app.
Ideally your
State
is defined asImmutable<State>
to prevent inadvertent mutations to state, bypassingstore.write()
)