From 6c511f0b108e0211024602259ed52faefd9aeffa Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Sun, 12 May 2024 16:12:21 +0100 Subject: [PATCH] Revert "fix: ensure Svelte action destroy effects are untracked (#11562)" This reverts commit e49f1f7f114759c97dae2d266c7a7c999e8941c5. --- .changeset/lazy-bats-turn.md | 5 ----- packages/svelte/src/internal/client/dom/elements/actions.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 .changeset/lazy-bats-turn.md diff --git a/.changeset/lazy-bats-turn.md b/.changeset/lazy-bats-turn.md deleted file mode 100644 index 9d0bb5bc8b4c..000000000000 --- a/.changeset/lazy-bats-turn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"svelte": patch ---- - -fix: ensure Svelte action destroy effects are untracked diff --git a/packages/svelte/src/internal/client/dom/elements/actions.js b/packages/svelte/src/internal/client/dom/elements/actions.js index 20032899a389..50f946b93abb 100644 --- a/packages/svelte/src/internal/client/dom/elements/actions.js +++ b/packages/svelte/src/internal/client/dom/elements/actions.js @@ -32,7 +32,7 @@ export function action(dom, action, get_value) { } if (payload?.destroy) { - return () => untrack(() => /** @type {Function} */ (payload.destroy)()); + return () => /** @type {Function} */ (payload.destroy)(); } }); }