state-registry
Immutable application state registry
API
const appState = initialState
Add a change to the list of pending changes. See https://github.com/kolodny/immutability-helper for details.
appState;
Perform all pending changes.
appState;
Add some changes and commit right away. This is the same as calling update() then commitChanges().
appState;
Listen for state changes. The listener receive the new state as first argument and the old state as second argument.
appState;
Remove a change listener.
appState;
Extend the update functionalities. See https://github.com/kolodny/immutability-helper for details.
appState;