fn() — svelte Function Reference
Architecture documentation for the fn() function in boundary.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD db550759_ee3b_160c_8afa_d1aa9fae478c["fn()"] 928abd29_a193_3303_bc6d_b7d6ce0b17ec["Boundary"] db550759_ee3b_160c_8afa_d1aa9fae478c -->|defined in| 928abd29_a193_3303_bc6d_b7d6ce0b17ec 4de7f5ce_83b2_1bef_8e42_34d4dcb4c29f["async()"] 4de7f5ce_83b2_1bef_8e42_34d4dcb4c29f -->|calls| db550759_ee3b_160c_8afa_d1aa9fae478c b9aaaccb_7510_28de_bb53_f808b2cb1d5e["flatten()"] b9aaaccb_7510_28de_bb53_f808b2cb1d5e -->|calls| db550759_ee3b_160c_8afa_d1aa9fae478c 9a4a3f08_7a6a_f871_c243_a35a6690f3f7["run()"] 9a4a3f08_7a6a_f871_c243_a35a6690f3f7 -->|calls| db550759_ee3b_160c_8afa_d1aa9fae478c a387a36f_f417_a149_0b1a_ee4a1da63440["async_derived()"] a387a36f_f417_a149_0b1a_ee4a1da63440 -->|calls| db550759_ee3b_160c_8afa_d1aa9fae478c 06f2307f_37db_1e25_c26b_19978071ccc7["unmount()"] 06f2307f_37db_1e25_c26b_19978071ccc7 -->|calls| db550759_ee3b_160c_8afa_d1aa9fae478c 55623862_10b7_5361_e30b_34ec6941f1a7["set_active_effect()"] db550759_ee3b_160c_8afa_d1aa9fae478c -->|calls| 55623862_10b7_5361_e30b_34ec6941f1a7 311ef9f4_9b68_c178_c1db_3b8696f7d964["set_active_reaction()"] db550759_ee3b_160c_8afa_d1aa9fae478c -->|calls| 311ef9f4_9b68_c178_c1db_3b8696f7d964 7a5dcc8e_a227_a041_3278_04368ddf1422["set_component_context()"] db550759_ee3b_160c_8afa_d1aa9fae478c -->|calls| 7a5dcc8e_a227_a041_3278_04368ddf1422 6c1ccbf4_9a62_285e_f0c7_95d2b223818c["handle_error()"] db550759_ee3b_160c_8afa_d1aa9fae478c -->|calls| 6c1ccbf4_9a62_285e_f0c7_95d2b223818c style db550759_ee3b_160c_8afa_d1aa9fae478c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/dom/blocks/boundary.js lines 267–286
#run(fn) {
var previous_effect = active_effect;
var previous_reaction = active_reaction;
var previous_ctx = component_context;
set_active_effect(this.#effect);
set_active_reaction(this.#effect);
set_component_context(this.#effect.ctx);
try {
return fn();
} catch (e) {
handle_error(e);
return null;
} finally {
set_active_effect(previous_effect);
set_active_reaction(previous_reaction);
set_component_context(previous_ctx);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does fn() do?
fn() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/blocks/boundary.js.
Where is fn() defined?
fn() is defined in packages/svelte/src/internal/client/dom/blocks/boundary.js at line 267.
What does fn() call?
fn() calls 4 function(s): handle_error, set_active_effect, set_active_reaction, set_component_context.
What calls fn()?
fn() is called by 5 function(s): async, async_derived, flatten, run, unmount.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free