pmndrs / zustand

🐻 Bear necessities for state management in React
https://zustand-demo.pmnd.rs/
MIT License
46.33k stars 1.43k forks source link

Persistency #7

Closed dy closed 5 years ago

dy commented 5 years ago

Redux or unistore have redux-persist or unissist persistency solution. Is there any persistor for zustand? Mb that can be solved with simple throttled middleware?

drcmda commented 5 years ago

Middleware has full access to initial state and mutations, storage based or remote persist middleware wouldn't be hard to create.

JeremyRH commented 5 years ago

I'm going to close this issue. We can add more middleware examples at a later time if we feel the need.