Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: is there a way to manually trigger restoreState? #260

Open
sharoneh opened this issue Oct 31, 2022 · 0 comments
Open

Question: is there a way to manually trigger restoreState? #260

sharoneh opened this issue Oct 31, 2022 · 0 comments

Comments

@sharoneh
Copy link

sharoneh commented Oct 31, 2022

the situation is that I have an SSG application, so I'm using vuex-persist to store the app state in the document at the time I am pre-rendering my pages, so the state is stored as HTML in every static HTML I am generating at build time.

Is there a way to trigger restoreState on route change so that on the client side I can avoid making requests that were already made at build time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant