How to persist none primitive type in Nuxt 3? #29
Answered
by
soc221b
sokphengkean
asked this question in
Q&A
-
I'm trying to persist with the object, but it's not working. Are there any solutions to persist objects? |
Beta Was this translation helpful? Give feedback.
Answered by
soc221b
Jul 24, 2022
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sokphengkean
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
serialize
anddeserialize
, for example:https://github.com/iendeavor/pinia-plugin-persistedstate-2/blob/678ef5b5218daadc01f55709c4499607fdfc0b0e/examples/xstate-example/src/stores/water.ts#L25-L34