-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Vue component state persistence does not work #11854
Comments
Just to add that it is also broken in svelte and solid |
AlpineJS is having a similar issue (https://stackblitz.com/edit/withastro-astro-nfhm78), however, I suspect that is due to AlpineJS not having the capability to hydrate. Can someone confirm that? |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When using a Vue component with ViewTransitions, the state is not persisted as expected. A warning about a hydration mismatch is also present in the console.
It works when using
transition:persist-props
.What's the expected result?
When incrementing the buttons in the example and then clicking "navigate", the Vue and React example should keep the counts, but the Vue component is reset.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-jhuzfh-jxxerz
Participation
The text was updated successfully, but these errors were encountered: