Skip to content

Commit f5a87c0

Browse files
committed
all tests passing
1 parent 692843f commit f5a87c0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ export class Fork {
434434
return;
435435
}
436436

437+
this.#boundary.commit_fork(this);
438+
active_fork = null;
439+
437440
for (const e of this.#render_effects) {
438441
try {
439442
set_signal_status(
@@ -470,8 +473,6 @@ export class Fork {
470473
handle_error(error, e, null, e.ctx);
471474
}
472475
}
473-
474-
this.#boundary.commit_fork(this);
475476
}
476477

477478
increment() {

packages/svelte/src/internal/client/runtime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,13 +1059,13 @@ export function get(signal) {
10591059
recent_async_deriveds.delete(signal);
10601060
}
10611061

1062-
if ((signal.f & DERIVED) === 0) {
1062+
if (active_effect !== null && (signal.f & DERIVED) === 0) {
10631063
if (active_fork) {
10641064
// console.log('get from fork', (signal.f & DERIVED) !== 0 ? 'derived' : 'source', signal.v);
10651065
return active_fork.get(signal);
10661066
}
10671067

1068-
var boundary = active_effect?.b;
1068+
var boundary = (active_effect.f & EFFECT) === 0 && active_effect.b;
10691069
if (boundary) {
10701070
// console.log('get from boundary', (signal.f & DERIVED) !== 0 ? 'derived' : 'source', signal.v);
10711071
return boundary.get(signal);

0 commit comments

Comments
 (0)