Unique ID for each action. Automatically assigned based on key names from the ActionMap passed into createStore
User-defined resolver function for the action
A collection of Actions with human-readable keys
A collection of ActionsSets with human-readable keys
Enable support for server-side rendering
Key to use when storing state in local/session storage
Storage API to use, if any
The shape of the React context object that contains the Store's state and dispatch function.
Generates an Action object, which when passed into createStore as part of an ActionMap, can be called to mutate the Store's state.
The resolver function to be called by the Store's reducer. This function takes in user-input, and should return the modified state. This function can be thought of as a single case in a switch statement as you'd see in Redux or useReducer
User-defined resolver function for the action
Generates an ActionSet object, which can be used to execute asynchronous functions and dispatch Actions to the store.
Async function to execute
Used internally to clear the cached state
The initial state of the Store
The map of Actions to bind to the returned Store
The initial state of the Store
The map of Actions to bind to the returned Store
Used internally to retrieve the storage API and initial state
Used internally to generate the reducer for the different Stores
Generated using TypeDoc
Called internally by the Store to resolve action state