fix: ensure Svelte action destroy effects are untracked (#11562)

* fix: unesure Svelte action destroy effects are untracked

* fix: unesure Svelte action destroy effects are untracked
pull/11568/head
Dominic Gannaway 8 months ago committed by GitHub
parent 816335f906
commit e49f1f7f11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"svelte": patch
---
fix: ensure Svelte action destroy effects are untracked

@ -32,7 +32,7 @@ export function action(dom, action, get_value) {
}
if (payload?.destroy) {
return () => /** @type {Function} */ (payload.destroy)();
return () => untrack(() => /** @type {Function} */ (payload.destroy)());
}
});
}

Loading…
Cancel
Save