Skip to content

Commit 692843f

Browse files
committed
partial fix
1 parent e73fed3 commit 692843f

File tree

1 file changed

+4
-2
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+4
-2
lines changed

packages/svelte/src/internal/client/dom/blocks/boundary.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ export class Boundary {
246246
var onerror = this.#props.onerror;
247247
let failed = this.#props.failed;
248248

249+
active_fork = null;
250+
249251
const reset = () => {
250252
this.#pending_count = 0;
251253
this.values.clear();
@@ -336,8 +338,8 @@ export class Boundary {
336338

337339
fn(active_fork);
338340

339-
active_fork.commit();
340-
// active_fork = null;
341+
active_fork?.commit(); // could be nulled out if there was an error
342+
active_fork = null;
341343
}
342344

343345
/**

0 commit comments

Comments
 (0)