The state as it will be handed to the client, for SSR.
The current state.
Adopt a state produced on the server.
Replace the state wholesale, bypassing the merge.
Put the state back to what it was created with.
Read a derived value now.
Commit a change. Merges a partial state, like a component's setState.
Watch every change. Returns the function that stops watching.
Watch a derived value, notified only when it actually changes.
The store contract, deliberately small and free of any view engine.
Four operations answer every need a view has: read, write, watch, and derive. Anything larger belongs to the application, not to a store.