Home / Function/ update_pending_count() — svelte Function Reference

update_pending_count() — svelte Function Reference

Architecture documentation for the update_pending_count() function in boundary.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  95fd9978_b635_37dc_dfee_13c687d48cd6["update_pending_count()"]
  928abd29_a193_3303_bc6d_b7d6ce0b17ec["Boundary"]
  95fd9978_b635_37dc_dfee_13c687d48cd6 -->|defined in| 928abd29_a193_3303_bc6d_b7d6ce0b17ec
  4de7f5ce_83b2_1bef_8e42_34d4dcb4c29f["async()"]
  4de7f5ce_83b2_1bef_8e42_34d4dcb4c29f -->|calls| 95fd9978_b635_37dc_dfee_13c687d48cd6
  a50e548b_3d25_da25_5809_14d318b33cb2["d()"]
  a50e548b_3d25_da25_5809_14d318b33cb2 -->|calls| 95fd9978_b635_37dc_dfee_13c687d48cd6
  9a4a3f08_7a6a_f871_c243_a35a6690f3f7["run()"]
  9a4a3f08_7a6a_f871_c243_a35a6690f3f7 -->|calls| 95fd9978_b635_37dc_dfee_13c687d48cd6
  a387a36f_f417_a149_0b1a_ee4a1da63440["async_derived()"]
  a387a36f_f417_a149_0b1a_ee4a1da63440 -->|calls| 95fd9978_b635_37dc_dfee_13c687d48cd6
  2cab0f64_6d19_d981_66e2_d2555c252702["queue_micro_task()"]
  95fd9978_b635_37dc_dfee_13c687d48cd6 -->|calls| 2cab0f64_6d19_d981_66e2_d2555c252702
  fc566ca0_2101_ea1a_cf42_44d2442cc526["internal_set()"]
  95fd9978_b635_37dc_dfee_13c687d48cd6 -->|calls| fc566ca0_2101_ea1a_cf42_44d2442cc526
  style 95fd9978_b635_37dc_dfee_13c687d48cd6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/dom/blocks/boundary.js lines 358–372

	update_pending_count(d) {
		this.#update_pending_count(d);

		this.#local_pending_count += d;

		if (!this.#effect_pending || this.#pending_count_update_queued) return;
		this.#pending_count_update_queued = true;

		queue_micro_task(() => {
			this.#pending_count_update_queued = false;
			if (this.#effect_pending) {
				internal_set(this.#effect_pending, this.#local_pending_count);
			}
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does update_pending_count() do?
update_pending_count() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/blocks/boundary.js.
Where is update_pending_count() defined?
update_pending_count() is defined in packages/svelte/src/internal/client/dom/blocks/boundary.js at line 358.
What does update_pending_count() call?
update_pending_count() calls 2 function(s): internal_set, queue_micro_task.
What calls update_pending_count()?
update_pending_count() is called by 4 function(s): async, async_derived, d, run.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free