Skip to content

Commit 3893489

Browse files
committed
fix bug
1 parent 18b062c commit 3893489

File tree

1 file changed

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

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,8 @@ export function boundary(node, props, boundary_fn) {
204204
}
205205
};
206206

207-
if (props.pending) {
208-
// @ts-ignore
209-
boundary.fn.pending = true;
210-
}
207+
// @ts-ignore
208+
boundary.fn.is_pending = () => props.pending;
211209

212210
if (hydrating) {
213211
hydrate_next();
@@ -270,7 +268,7 @@ export function capture() {
270268
*/
271269
export function is_pending_boundary(boundary) {
272270
// @ts-ignore
273-
return boundary.fn.pending;
271+
return boundary.fn.is_pending();
274272
}
275273

276274
export function suspend() {

0 commit comments

Comments
 (0)