How can I migrate from a different local storage format to the one expected by zustand #2338
Answered
by
dai-shi
gregoryabailey
asked this question in
General
-
I am migrating from a localstorage value that just contains a string. The migrate function doesn't seem to fit as it expects to be migrating between versions that match the StateStorage interface. Should I use merge? hydration? something else? |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Feb 15, 2024
Replies: 1 comment 1 reply
-
Maybe a custom storage. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gregoryabailey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe a custom storage.