The initial state.
The initial state.
Get the current state object.
Get the state value for the respective key.
An object key.
Update the current state, this merges the value into the current state.
A partial state object.
Update a specific key.
An object key.
The new value.
Subscribe to state changes.
A specific key, an array of keys or null
for every key.
A function to listen to the changes.
see SubscribeOptions
Remove an existing subscriber, this will prevent it from receiving new changes.
A specific key, an array of keys or null
for every key.
The subscriber function to remove.
Generated using TypeDoc
Create a new maintained state.