zustand-persist icon indicating copy to clipboard operation
zustand-persist copied to clipboard

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

Open krstffr opened this issue 3 years ago • 3 comments

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!

krstffr avatar Apr 21 '21 07:04 krstffr

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.

Aaike avatar Aug 12 '21 11:08 Aaike

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

gabimoncha avatar Nov 05 '21 23:11 gabimoncha

maybe this issue can be pinned?

pvinis avatar Feb 15 '22 18:02 pvinis