From 19579e10b2848931db7f6b2b375004dc27170c31 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sun, 7 Jul 2024 17:51:18 -0400 Subject: [PATCH] fix comment --- .../src/compiler/phases/3-transform/client/visitors/template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/src/compiler/phases/3-transform/client/visitors/template.js b/packages/svelte/src/compiler/phases/3-transform/client/visitors/template.js index 2a91e88c89..9c623f90c4 100644 --- a/packages/svelte/src/compiler/phases/3-transform/client/visitors/template.js +++ b/packages/svelte/src/compiler/phases/3-transform/client/visitors/template.js @@ -2189,7 +2189,7 @@ export const template_visitors = { { ...context, state: child_state } ); - // TODO only do this when necessary, and use a function with `if (hydrating)` so that it noops for non-hydraters + // TODO only do this when necessary child_state.init.push(b.stmt(b.call('$.reset', context.state.node))); if (has_declaration) {