Zampa
Zampa
Explore posts from servers
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
but I may experiment with it and see
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
and I was concerned about how performant setting ALL the components to .server.vue might be
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
but there are "islands" of user-content that should never be cached
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
My use case is that most of the pages I wanted heavily cached
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
Right - but I have like 400+ components 🙂
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
and use the nuxt-client on the ones that are different
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
Like, a global config to set all components as server components
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
Yeah, I've watched that! I kind of would almost like to see a reverse Server Components option in Nuxt. Where all components are server components, and some select few are Client.
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
Maybe wrapping all user-specific content in ClientOnly would circumvent that, but I'm not sure
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
so if you use isr or swr, it ends up caching the user state
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
Caching has been tricky, as my app (probably like yours) has lots of static content, but then also a user, with login state and a header with their name/avatar/data
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
that might be the issue
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
if you are caching state on the instance, its possible that if it's leaking
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
Do you have any routeRules? Where your state is being cached?
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
so yeah, something must be getting written and persisted to your store in an unusual way
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
I just tested a few different users in different incognito tabs - no pinia state shared
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
well now I am scared to change what's working! 😛
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
Yeah, odd - the docs seem to use both...
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
No description
54 replies
NNuxt
Created by RicharDVD on 9/16/2024 in #❓・help
Pinia state leaks across browser sessions
No description
54 replies