Must be overridden. Takes in an initial state.
state to start store with
Destory the state and call .complete()
on
the state's underlying observable
NOTE: once this is called, the store cannot be reused
Change part of the state to the passed in value.
This will create a shallow copy of the current state and set all properties of the new passed in state using the spread operator.
Throws an error if called when the store has already
been destroyed (using .destroy()
).
partial state to change
Get the state synchonously
Get the state as an observable
Check to see if the store has been destroyed. If it has been, it can no longer be used.
Generated using TypeDoc
BaseStore class to manage state in a unified location