Question about state persistence #647
Replies: 1 comment
-
Welp - In addition to all the things I said I am above, I'm also an idiot. Please disregard my previous question. The problem had nothing to do with vitesse, SSG, PWA, vite, Vue, or Pinia. The problem was that I'm an idiot, and my layouts and pages were using vanilla HTML elements for navigation, as opposed to 😆 |
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
-
Hi @posva - I am a Solutions Architecture Leader @ AWS and I'm also a huge fan of your work (in the Vuex team, on Pinia, and other projects too!) 😁
I'm currently building a codebase off of antfu's Vitesse boilerplate.
I am struggling to understand some of Pinia's behavior (please forgive me, as I am relatively new to both Vue3 AND to Pinia, Vuex, and Vite).
Question/Problem Statement: With the way Vitesse is set up, is it expected behavior that data in my stores would be reset/wiped when navigating between routes/pages?
I am not building the project with SSG or SSR - just vanilla
cross-env NODE_ENV=production vite build
with the PWA plug in...even though Vitesse is set up withexport const createApp = ViteSSG()...
It seems as though the pinia stores are reinstalled/reinitialized on every route change/page load.
I am happy to provide some sample code to show you my implementation, but before I go down that rabbit-hole, I just wanted to ask the question.
IF this behavior is, indeed, intended - how can I persist the data in my store between routes/navigating pages?
Beta Was this translation helpful? Give feedback.
All reactions