Add a reducer to be ran on dispatches updating a property of State rather than the whole object.
Return the current state value
Subscribe to the store. The given callback is ran after every dispatch() call.
Create a callback to dispatch the given action
Create a callback which runs the given action creator and dispatches it's action result
Subscribe to the Store and run the selector upon state changes
A function taking getState and a dispatcher allowing for multiple dispatches and up to date reads. Useful for async patterns. See redux-thunk.
Variadic memoize function. Takes and returns a function, prevserving it's type signature whilt applying memoization to it.
Function from S to A
The base type for a tagged union via the type
property.
A record keyed by Actions where the value is a reducer taking that action. See reducerFromHandlers for usage.
Classical reducer. Takes state & an action returs a new state.
Generated using TypeDoc
Add a reducer to be ran on dispatches
The reducer to be added
Function to remove the given reducer, no longer running it upon dispatches