🐛 BUG: Svelte if statements break after HMR #3566
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: hmr
Related to HMR (scope)
What version of
astro
are you using?1.0.0-beta.42
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, Windows
Describe the Bug
When using a Svelte conditional based on a state variable:
...changes to any file in the dev server (including the astro template rendering the component) will break hydration. See the error message below from the clientside console:
A page refresh fixes this.
Note: To see the error in the example linked below:
index.astro
fileLink to Minimal Reproducible Example
https://stackblitz.com/edit/github-uqfwdr-jnpvhj?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: