-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Svelte 5: HMR only updates once #12506
Comments
Same issue here - first HMR update works, but nothing after. Linking the problematic PR: #12454 |
Same Here, a new project with tailwindcss the HMR only works once. |
It's this: Rich said they are aware and will fix when they have a chance to fix. |
It's not the same, there are no components in the repro and that one started in |
is same issue? |
Yep! |
Hey all, I am experiencing the same issue. I started a new Svelte 5 project to test it out. I am currently running: I am using the I was going crazy trying to figure out the root cause of this. Good to see I'm not the only one experiencing the hmr issue. For the time being, i'm going to roll back my svelte 5 version to: |
The previous HMR logic created a new wrapper and source per HMR update, which meant things would either get wrapped more and more (prior to #12454) or would not get updated after the first update because the reference to the original would get lost (after #12454). This fixes that by creating a registry within the HMR wrappers by filename are stored, retrieved and its signals updated. That way nothing gets lost, and nothing gets wrapped more than needed. Fixes #12506
193 still issue...😭 |
Fixed by #12547 |
Describe the bug
Svelte 5: HMR only updates once.
Worked in
5.0.0-next.186
, broken from5.0.0-next.187
.Reproduction
https://stackblitz.com/github/henrikvilhelmberglund/svelte5-hmr-repro?file=src%2Froutes%2F%2Bpage.svelte
or
https://github.com/henrikvilhelmberglund/svelte5-hmr-repro
ni && nr dev
aka install and run dev+page.svelte
Expected: It disappears from the page.
Result: It doesn't disappear from the page.
If you F5 you can get one HMR again but nothing after that.
Logs
No response
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: