Intermediary type for middleware dispatch.
The type/interface for the exposed Restash hook.
Applies middleware wrapping for dispatch
and array of middlewares to be applied.
Creates a context for persisting data in your application, createContext is used by both createStore and createRestash.
context options used to initialize.
Creates Restash store instance with simple opinionated reducer for typical persistent tasks.
options used to initialize Restash.
Clears persistence, when keys are present clears only those persisted keys.
keys that should be cleared.
Clears persistence, when keys are present clears only those persisted keys.
keys that should be cleared.
Constrains store hook to a specific key.
the store key to constrain hook at.
the default value for the key.
The default store hook.
Creates store using default or provided reducer and dispatch action which contains one property "payload" for your data.
base options to initialize context.
Generated using TypeDoc
Default dispactch type/interface.