Unmount not deferred components immediately

pull/16638/head
harshmandan 3 weeks ago
parent 2b85d2a544
commit 41e3dd908c

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: unmount not deferred components immediately

@ -51,7 +51,8 @@ export function component(node, get_component, render_fn) {
var defer = should_defer_append();
if (effect) {
// For sync context: immediately pause the old effect
if (!defer && effect) {
pause_effect(effect);
effect = null;
}

Loading…
Cancel
Save