You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Svelte component is added without client property, it loses hot-reloading behavior for both DOM changes, but more frustratingly - style changes.
It seems that the style changes don't take effect until a parent astro component is updated.
Go to the Stackblitz example and toggle font size on and off. Then go to index.astro turn on <Test client:load /> example.
Note - To break or fix hot-reloading you'll need to restart astro dev server. So if you start out with client:load and then remove client:load - hot reloading is going to keep on working until the next restart.
Looks like this is the same underlying issue as #3097, I should have a PR out today that makes sure the browser reloads when a server-only component is updated in dev
What version of
astro
are you using?1.0.0-beta.7
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
When a Svelte component is added without
client
property, it loses hot-reloading behavior for both DOM changes, but more frustratingly - style changes.It seems that the style changes don't take effect until a parent astro component is updated.
Reproducing
Go to the Stackblitz example and toggle font size on and off. Then go to
index.astro
turn on<Test client:load />
example.Note - To break or fix hot-reloading you'll need to restart astro dev server. So if you start out with
client:load
and then removeclient:load
- hot reloading is going to keep on working until the next restart.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-odctde?file=src/components/Test.svelte
Participation
The text was updated successfully, but these errors were encountered: