Skip to content

Commit 9a9cf92

Browse files
committed
activate batch before decrementing
1 parent f972a49 commit 9a9cf92

File tree

1 file changed

+5
-1
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,11 @@ export function suspend() {
615615

616616
return function unsuspend() {
617617
boundary.update_pending_count(-1);
618-
if (!pending) batch.decrement();
618+
619+
if (!pending) {
620+
batch.activate();
621+
batch.decrement();
622+
}
619623

620624
unset_context();
621625
};

0 commit comments

Comments
 (0)