Closed mudoo closed 1 year ago
server side is not working.
is nuxt3 context bug, not this plugin problem.
It does it seem like it is a nuxt3 bug, but intended behavior. Could it be fixed by wrapping useCookie with callWithNuxt in this module?
I've managed to solve this problem by manually defining a nuxt plugin
where I would call $pinia.use(createPersistedState(...))
(instead of adding pinia-plugin-persistedstate/nuxt
to modules
inside of nuxt.config.ts
In my case the error was thrown because of runWithContext(...)
that's called when you add this plugin trough nuxt.config
.
i will try to use the callWithNuxt
thing and see what happens
Describe the bug
Reproduction
persist: [{ debug: true }]
System Info
Used Package Manager
yarn
Validations