roadmanfong / zustand-persist

Persist and rehydrate state
MIT License
119 stars 13 forks source link

What are the pros and cons of zustand-persist compared to the built in persistance? #8

Open krstffr opened 3 years ago

krstffr commented 3 years ago

Hi!

I was looking for a persistance solution for zustand and found this repo as well as the built in https://github.com/pmndrs/zustand#persist-middleware. What are the pros and cons of zustand-persist compared to the built in persistance?

Thanks!

Aaike commented 3 years ago

I will just attempt to answer this one. I think this was created before zustand persist middleware was created (I believe it was added in zustand v3). I tried to use the zustand persist middleware in one of my projects but I couldn't because i was still on zustand v2.

gabimoncha commented 2 years ago

Yes, this library was created before zustand had it's built-in middleware

pvinis commented 2 years ago

maybe this issue can be pinned?