-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Astro 3.0 with ViewTransition and Vue component #8361
Comments
I have the same issue with React components ☝️ |
I have a similar problem with React. In my case the styles disappear. I'm using emotion so not sure if that's related. |
Have the similar issue with Vue component. Component does still exists, but the style's gone. |
Commenting to say I have the same issue with styling disappearing. I have a navbar built with svelte and i'm using this directive |
Can everyone here try with > 3.0.8? There was a style fix for |
Tested with 3.2.0 and my Vue component still disappears after navigation. |
Worked for me. Thanks! 🥳 |
Still have the same issue CleanShot.2023-10-04.at.09.46.41.mp4 |
When generating the astro-island for the Vue component, the transition attributes were copied to the content of the island. The code for moving persistent elements between DOMs does not cope with same attributes in nested elements: first the island is moved in, then an attempt is made to again move its content. When reaching into the void, the content of the island is unintentionally deleted. Fix #8776 removes the incorrect double generation of attributes |
@miguelean I read above that the client:only fix worked. Unfortunately we had to roll it back because it had too many negative side effects. As a short term workaround for DEV I recommend to import the style sheets for the |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
I am following examples from docs and trying to get a simple
Counter
working where the component persists. However, my custom component disappears after navigation.My counter is placed in
Layout
With
MyCounter.vue
When navigating to another page, this component disappears.
What's the expected result?
I expect this component to not disappear, and the
counter
value to persist.I have searched other bugs that are open and nothing seems similar. Perhaps this is a simple mistake because my example is from the docs.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-sv58pq
Participation
The text was updated successfully, but these errors were encountered: