Zustand w/ persist + immer + superjson, not serializing/deserializing as intended #2868
Unanswered
lukasjaronis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been following the docs for my solution, and given the store is relatively simple, I am encountering weird issues. Here is the full snippet of the store: https://pastecord.com/lawolexuju.typescript.
Randomly, the
savedgets serialized as an array, but majority of the time it gets serialized as a plain object which results insaved.setis not a function.Aside from this, from my understanding, this should rehydrate on multi-tenant switches? On logout I clear
tenantIdandprojectId, butsavedshould persist and upon a new tenant, it should have the previous values.Beta Was this translation helpful? Give feedback.
All reactions