all tests passing

async-changeset
Rich Harris 7 months ago
parent 692843fa88
commit f5a87c0f12

@ -434,6 +434,9 @@ export class Fork {
return;
}
this.#boundary.commit_fork(this);
active_fork = null;
for (const e of this.#render_effects) {
try {
set_signal_status(
@ -470,8 +473,6 @@ export class Fork {
handle_error(error, e, null, e.ctx);
}
}
this.#boundary.commit_fork(this);
}
increment() {

@ -1059,13 +1059,13 @@ export function get(signal) {
recent_async_deriveds.delete(signal);
}
if ((signal.f & DERIVED) === 0) {
if (active_effect !== null && (signal.f & DERIVED) === 0) {
if (active_fork) {
// console.log('get from fork', (signal.f & DERIVED) !== 0 ? 'derived' : 'source', signal.v);
return active_fork.get(signal);
}
var boundary = active_effect?.b;
var boundary = (active_effect.f & EFFECT) === 0 && active_effect.b;
if (boundary) {
// console.log('get from boundary', (signal.f & DERIVED) !== 0 ? 'derived' : 'source', signal.v);
return boundary.get(signal);

Loading…
Cancel
Save