Open u007 opened 1 month ago
Hi, the default with Nuxt is actually cookies
as it is an SSR friendly solution. localStorage
and sessionStorage
are client-only which may end up in hydration mismatches and unexpected behaviours with Nuxt's default SSR setting :)
hi. nice but i realised using cookies store does not work, my store become empty
Hi, the default with Nuxt is actually
cookies
as it is an SSR friendly solution.localStorage
andsessionStorage
are client-only which may end up in hydration mismatches and unexpected behaviours with Nuxt's default SSR setting :)
Really ? but doc says that default is localStorage : https://prazdevs.github.io/pinia-plugin-persistedstate/guide/config.html#storage
do you have a vike plugin?
Clear and concise description of the problem
by default persists: true -> using sessionStorage, upon refresh, its gone
Suggested solution
suggest default storage to persistedState.localStorage
Alternative
No response
Additional context
No response
Validations