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
-
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
saved
gets serialized as an array, but majority of the time it gets serialized as a plain object which results insaved.set
is not a function.Aside from this, from my understanding, this should rehydrate on multi-tenant switches? On logout I clear
tenantId
andprojectId
, butsaved
should persist and upon a new tenant, it should have the previous values.Beta Was this translation helpful? Give feedback.
All reactions