mirror of https://github.com/sveltejs/svelte
fix: remove nodes in boundary when work is pending and HMR is active (#17932)
Fixes https://github.com/sveltejs/svelte/issues/17918#issuecomment-4054067024. The issue here was that in `boundary.#render`, if `this.#pending_count > 0` we yoink the content out of the DOM so we can replace it with the `pending` fragment. This works by taking everything from `effect.nodes.start` to `effect.nodes.end` and putting it in a `DocumentFragment`. With HMR, that doesn't work, because the effect with the nodes is buried inside the HMR effect. This fixes it. Draft because I'd like to try this out in a few more places before merging.pull/17936/head
parent
32a48ed174
commit
1cd06451af
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: remove nodes in boundary when work is pending and HMR is active
|
||||
Loading…
Reference in new issue