pull/15844/head
Rich Harris 2 months ago
parent 8f47fa8119
commit 65b0381195

@ -49,7 +49,6 @@ export function boundary(node, props, children) {
} }
export class Boundary { export class Boundary {
inert = false;
pending = false; pending = false;
/** @type {Boundary | null} */ /** @type {Boundary | null} */
@ -85,9 +84,7 @@ export class Boundary {
#pending_count = 0; #pending_count = 0;
#is_creating_fallback = false; #is_creating_fallback = false;
/** /** @type {Source<number> | null} */
* @type {Source<number> | null}
*/
#effect_pending = null; #effect_pending = null;
#effect_pending_subscriber = createSubscriber(() => { #effect_pending_subscriber = createSubscriber(() => {
@ -208,7 +205,11 @@ export class Boundary {
} }
} }
commit() { /** @param {1 | -1} d */
#update_pending_count(d) {
this.#pending_count += d;
if (this.#pending_count === 0) {
this.pending = false; this.pending = false;
if (this.#pending_effect) { if (this.#pending_effect) {
@ -222,14 +223,6 @@ export class Boundary {
this.#offscreen_fragment = null; this.#offscreen_fragment = null;
} }
} }
/** @param {1 | -1} d */
#update_pending_count(d) {
this.#pending_count += d;
if (this.#pending_count === 0) {
this.commit();
}
} }
/** @param {1 | -1} d */ /** @param {1 | -1} d */

Loading…
Cancel
Save