How to use Pinia plugin persist in nuxt3 #1301
Unanswered
LY-Net
asked this question in
Help and Questions
Replies: 1 comment
-
Hi, Unsure if my problem was similar to yours but I did encounter the problem that:
Actually I think it's because of Server Side Rendering. On first load the code is executed in the server, in that case localStorage doesn't exist. I solved my issue by disabling SSR in nuxt.config.ts |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Reproduction
localstorage is not defined
Steps to reproduce the bug
How to use Pinia plugin persist in nuxt3 and Solve the problem of localstorage is not defined
Expected behavior
How to use Pinia plugin persist in nuxt3 and Solve the problem of localstorage is not defined
Actual behavior
How to use Pinia plugin persist in nuxt3 and Solve the problem of localstorage is not defined
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions