-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
🐛 BUG: <link rel="stylesheet"> inside Svelte component breaks client:visible #4191
Comments
Thanks for opening an issue! This is a strange one, we'll have to investigate what's going on here. |
I think this issue is resolved? Reproduction: https://github.com/pilcrowOnPaper/astro-svelte-visible-hydrate |
Not resolved for me yet, getting the same problem |
@isaac-mcfadyen @PuruVJ @natemoo-re 2 things:
From this, I think this is an issue with StackBlitz and network requests, and not Astro/Svelte. |
The reproduction is fine, but my local version with many MDX and Svelte files combined isn't working. Update: It's not because of style. It's just not working at all 😅 |
@natemoo-re what's the latest news for this bug? I want to found it |
Looks like this is working fine, but StackBlitz is blocking the unpkg request somehow causing it fail. If I run this locally, specify another external link that 404s, it renders fine too. Closing as fixed. |
What version of
astro
are you using?v1.0.0-rc.7
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
macOS Ventura (don't think it's related)
Describe the Bug
When using a
<link rel="stylesheet" ...>
inside a Svelte component,client:visible
seems to break.Any component with a stylesheet anywhere inside it and using
client:visible
will no longer be hydrated, no matter where on the page you scroll and even if it's directly visible. Removing the stylesheet causes things to immediately work again.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-fv7dts?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: