restore -> activate

pull/15844/head
Rich Harris 3 months ago
parent 5e1ec58eff
commit aa5af759d9

@ -29,7 +29,7 @@ export function flatten(sync, async, fn) {
.then((result) => { .then((result) => {
if ((parent.f & DESTROYED) !== 0) return; if ((parent.f & DESTROYED) !== 0) return;
batch?.restore(); batch?.activate();
restore(); restore();

@ -224,7 +224,7 @@ export class Batch {
this.#current.set(source, source.v); this.#current.set(source, source.v);
} }
restore() { activate() {
current_batch = this; current_batch = this;
} }

@ -152,7 +152,7 @@ export function async_derived(fn, location) {
current_async_effect = null; current_async_effect = null;
if (!pending) batch.restore(); if (!pending) batch.activate();
if (error) { if (error) {
if (error !== STALE_REACTION) { if (error !== STALE_REACTION) {

Loading…
Cancel
Save