We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95400b5 commit 26e4a4cCopy full SHA for 26e4a4c
packages/svelte/src/internal/client/dom/blocks/boundary.js
@@ -238,9 +238,10 @@ export class Boundary {
238
if (!this.has_pending_snippet()) {
239
if (this.parent) {
240
this.parent.#update_pending_count(d);
241
+ return;
242
}
243
- return;
244
+ e.await_outside_boundary();
245
246
247
this.#pending_count += d;
@@ -403,13 +404,7 @@ function move_effect(effect, fragment) {
403
404
405
406
export function get_boundary() {
- var boundary = /** @type {Effect} */ (active_effect).b;
407
-
408
- if (boundary === null) {
409
- e.await_outside_boundary();
410
- }
411
412
- return boundary;
+ return /** @type {Effect} */ (active_effect).b;
413
414
415
export function pending() {
0 commit comments