Add handlers that will be invoked to process a dispatched Action.
The Reshaper.
Add an onChange callback. Only a single callback can be passed to this function but the function can be invoked multiple times to add multiple callbacks.
The Reshaper.
Dispatch one or more Actions or InlineHandlers to update state.
The type of the state object.
Remove an array of handlers.
Handlers added using addHandlers.
The Reshaper.
Remove an onChange callback.
The Reshaper.
Provide a function that returns the current state when invoked. The return
value of getter
will be passed to the handlers.
The Reshaper.
A Reshaper is the primary object of reshape-state and is responsible for managing updates to a state object.