Skip to content

Commit 42a59e2

Browse files
committed
fix
1 parent ca11ebd commit 42a59e2

File tree

1 file changed

+3
-0
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export function boundary(node, props, children) {
133133
// @ts-ignore We re-use the effect's fn property to avoid allocation of an additional field
134134
boundary.fn = (/** @type {unknown} */ input, /** @type {Function} */ payload) => {
135135
if (input === ASYNC_INCREMENT) {
136+
boundary.f |= BOUNDARY_SUSPENDED;
136137
async_count++;
137138

138139
// TODO post-init, show the pending snippet after a timeout
@@ -246,6 +247,8 @@ export function boundary(node, props, children) {
246247
main_effect = branch(() => children(anchor));
247248

248249
if (async_count > 0) {
250+
boundary.f |= BOUNDARY_SUSPENDED;
251+
249252
if (pending) {
250253
offscreen_fragment = document.createDocumentFragment();
251254
move_effect(main_effect, offscreen_fragment);

0 commit comments

Comments
 (0)