RicharDVD
Explicit import from local Layer
@kapa.ai I looked into Layer Aliases but they seem to be registered only when adding layers to the layers folder of your nuxt application. I don't see is registered in the generated tsconfig of the autoatlas layer. I did try to create a custom alias myself, like follows:
This seems to resolve correctly inside my editor (so cmd clicking the import works and the red line under the import disappears), but when loading the application I still get the following error message when running the application:
Failed to resolve import "@base/app/stores/auth.store" from "app/pages/dashboard/index.vue"
11 replies
Pinia state leaks across browser sessions
I think you might be right. But let's say I make the navbar client only (which uses some auth logic) it would jump into the page which is not so nice. I think I'd have to just remove the cache rules and see if that works out.
54 replies
Pinia state leaks across browser sessions
If you look in their docs, they now say that the npm package is "pinia-plugin-persistedstate".
https://prazdevs.github.io/pinia-plugin-persistedstate/frameworks/nuxt.html
54 replies
Pinia state leaks across browser sessions
I think that is because you are using an older version of the module. Since 4.0.0 it has updated to piniaPluginPersistedstate (https://github.com/prazdevs/pinia-plugin-persistedstate/releases/tag/v4.0.0)
54 replies
Pinia state leaks across browser sessions
I do indeed use the nuxt module. It is very hard to reproduce since it happens only happens occasionally. For now, I decided to just use a custom composable where the state is stored with instead of a pinia store. See if we will run into it again. If so, it must be something completely different.
54 replies