0.0.8 • Published 2 years ago

zustand-opine v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Zustand Opine

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

Opine Definition

transitive verb

To state as an opinion

Purpose

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

Demo

https://codesandbox.io/s/zustand-namedslices-5qkke?file=/src/App.js

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago