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
Styled Component is not applied when navigating with View Transition #11000
Labels
needs triage
Issue needs to be triaged
Comments
Hi @nojaf, it looks like You need to find a way to update the lib's internal state after view transitions. I skimmed through For more information see https://docs.astro.build/en/guides/view-transitions/#script-behavior-with-view-transitions |
Thanks a bunch for this solution! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
A styled component (via React client:only) will only render correctly if it is on the initial page load.
When navigating via a View Transition the style will not be applied.
What's the expected result?
The style is always applied after each page transition.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-wut9d2?file=src%2Fpages%2Fanother.astro
Participation
The text was updated successfully, but these errors were encountered: