Skip to content

Commit aa5af75

Browse files
committed
restore -> activate
1 parent 5e1ec58 commit aa5af75

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/svelte/src/internal/client/reactivity/async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function flatten(sync, async, fn) {
2929
.then((result) => {
3030
if ((parent.f & DESTROYED) !== 0) return;
3131

32-
batch?.restore();
32+
batch?.activate();
3333

3434
restore();
3535

packages/svelte/src/internal/client/reactivity/batch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class Batch {
224224
this.#current.set(source, source.v);
225225
}
226226

227-
restore() {
227+
activate() {
228228
current_batch = this;
229229
}
230230

packages/svelte/src/internal/client/reactivity/deriveds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function async_derived(fn, location) {
152152

153153
current_async_effect = null;
154154

155-
if (!pending) batch.restore();
155+
if (!pending) batch.activate();
156156

157157
if (error) {
158158
if (error !== STALE_REACTION) {

0 commit comments

Comments
 (0)