d() — svelte Function Reference
Architecture documentation for the d() function in boundary.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD a50e548b_3d25_da25_5809_14d318b33cb2["d()"] 928abd29_a193_3303_bc6d_b7d6ce0b17ec["Boundary"] a50e548b_3d25_da25_5809_14d318b33cb2 -->|defined in| 928abd29_a193_3303_bc6d_b7d6ce0b17ec eda2a5e7_3416_168e_40ff_8ceab3099f6c["has_pending_snippet()"] a50e548b_3d25_da25_5809_14d318b33cb2 -->|calls| eda2a5e7_3416_168e_40ff_8ceab3099f6c 95fd9978_b635_37dc_dfee_13c687d48cd6["update_pending_count()"] a50e548b_3d25_da25_5809_14d318b33cb2 -->|calls| 95fd9978_b635_37dc_dfee_13c687d48cd6 6479f832_c1d7_7636_b658_b3f9c70d9af0["set_signal_status()"] a50e548b_3d25_da25_5809_14d318b33cb2 -->|calls| 6479f832_c1d7_7636_b658_b3f9c70d9af0 e3c23578_a277_4ec0_656f_1000b1fa503b["schedule_effect()"] a50e548b_3d25_da25_5809_14d318b33cb2 -->|calls| e3c23578_a277_4ec0_656f_1000b1fa503b a199a3f7_5497_5329_2c7c_fc4555548da6["clear()"] a50e548b_3d25_da25_5809_14d318b33cb2 -->|calls| a199a3f7_5497_5329_2c7c_fc4555548da6 27507f0c_dcab_c3a5_2ce6_5e4b1ef9df3d["pause_effect()"] a50e548b_3d25_da25_5809_14d318b33cb2 -->|calls| 27507f0c_dcab_c3a5_2ce6_5e4b1ef9df3d style a50e548b_3d25_da25_5809_14d318b33cb2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/dom/blocks/boundary.js lines 307–350
#update_pending_count(d) {
if (!this.has_pending_snippet()) {
if (this.parent) {
this.parent.#update_pending_count(d);
}
// if there's no parent, we're in a scope with no pending snippet
return;
}
this.#pending_count += d;
if (this.#pending_count === 0) {
this.is_pending = false;
// any effects that were encountered and deferred during traversal
// should be rescheduled — after the next traversal (which will happen
// immediately, due to the same update that brought us here)
// the effects will be flushed
for (const e of this.#dirty_effects) {
set_signal_status(e, DIRTY);
schedule_effect(e);
}
for (const e of this.#maybe_dirty_effects) {
set_signal_status(e, MAYBE_DIRTY);
schedule_effect(e);
}
this.#dirty_effects.clear();
this.#maybe_dirty_effects.clear();
if (this.#pending_effect) {
pause_effect(this.#pending_effect, () => {
this.#pending_effect = null;
});
}
if (this.#offscreen_fragment) {
this.#anchor.before(this.#offscreen_fragment);
this.#offscreen_fragment = null;
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does d() do?
d() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/blocks/boundary.js.
Where is d() defined?
d() is defined in packages/svelte/src/internal/client/dom/blocks/boundary.js at line 307.
What does d() call?
d() calls 6 function(s): clear, has_pending_snippet, pause_effect, schedule_effect, set_signal_status, update_pending_count.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free