-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Nested components in server:defer #11518
Comments
Hello @jamesli2021. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
I couldn't see clearly with bad editor on this site that's deteriment to my vision, but you get the idea from my code. |
This does work if you enable As this option will likely be the default in 5.0 I think we'll not try to fix this with that option turned off. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
<Nav/>
astro component is inOtherPage.astro
, the client-side JavaScriptdocument.getElementById
could not detect the HTML in ID, which assume the script has executed before the component is render?Removed
server:defer
will work as usual, in SSR mode.What's the expected result?
How should this situation be dealt with?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-nuaezo-kcb88z
Participation
The text was updated successfully, but these errors were encountered: