From 3b9349e51a29f3ea272fa1a96f6a4499f539bce1 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 11 Feb 2025 11:04:31 -0500 Subject: [PATCH] tweak --- packages/svelte/src/internal/client/dom/blocks/boundary.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/svelte/src/internal/client/dom/blocks/boundary.js b/packages/svelte/src/internal/client/dom/blocks/boundary.js index ff40c04608..e1382e2ced 100644 --- a/packages/svelte/src/internal/client/dom/blocks/boundary.js +++ b/packages/svelte/src/internal/client/dom/blocks/boundary.js @@ -102,17 +102,16 @@ export class Boundary { this.#props = props; this.#children = children; + this.#hydrate_open = hydrate_node; + this.parent = /** @type {Effect} */ (active_effect).b; this.#effect = block(() => { var boundary_effect = /** @type {Effect} */ (active_effect); boundary_effect.b = this; - this.#hydrate_open = hydrate_node; - // @ts-ignore We re-use the effect's fn property to avoid allocation of an additional field boundary_effect.fn = (/** @type {unknown} */ input) => { - var error = input; this.error(input); };