Skip to content

Commit b44bd67

Browse files
committed
add comment
1 parent 3e7d3b7 commit b44bd67

File tree

1 file changed

+7
-1
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ export class Boundary {
8383
#pending_count = 0;
8484
#is_creating_fallback = false;
8585

86-
/** @type {Source<number> | null} */
86+
/**
87+
* A source containing the number of pending async deriveds/expressions.
88+
* Only created if `$effect.pending()` is used inside the boundary,
89+
* otherwise updating the source results in needless `Batch.ensure()`
90+
* calls followed by no-op flushes
91+
* @type {Source<number> | null}
92+
*/
8793
#effect_pending = null;
8894

8995
#effect_pending_subscriber = createSubscriber(() => {

0 commit comments

Comments
 (0)