Not ready for use yet. API still very much in flux
Goals for 1.0.0
- [ ] Structured store, with each slice being split up into
initialState
,actions
,derived
, etc. - [ ] Redux Devtools support with automatic action names
- [ ] Derived state, with optional dependency / query hadnling so complex state doesn't get computed every update
- [ ] Fully typed, such that autocomplete it available on all state, actions, etc.
- [ ] Use Immer to simplify nested mutations
- [ ] Fully tested with several example use-cases
- [ ] Testing, linting, formatting enforced by CI
transitive verb
To state as an opinion
An opinionated Zustand store.
- Automates naming of actions for Redux Dev Tools
- Includes Immer for simpler state management
- Reduces boilerplate when writing a namespaced multi-slice store
https://codesandbox.io/s/zustand-namedslices-5qkke?file=/src/App.js