pop() — svelte Function Reference
Architecture documentation for the pop() function in context.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 7114b424_5006_2886_1565_8d8123ef1ad8["pop()"] 48cf26f8_bf34_fd7a_3d52_cc963051e167["context.js"] 7114b424_5006_2886_1565_8d8123ef1ad8 -->|defined in| 48cf26f8_bf34_fd7a_3d52_cc963051e167 19856960_6d67_2247_a949_4d23d9ab5d11["setContext()"] 19856960_6d67_2247_a949_4d23d9ab5d11 -->|calls| 7114b424_5006_2886_1565_8d8123ef1ad8 6ac29608_bb3f_4976_22d6_2651518ca4bc["execute_derived()"] 6ac29608_bb3f_4976_22d6_2651518ca4bc -->|calls| 7114b424_5006_2886_1565_8d8123ef1ad8 95c17f0f_1042_263c_3de2_f8ab899408b0["_mount()"] 95c17f0f_1042_263c_3de2_f8ab899408b0 -->|calls| 7114b424_5006_2886_1565_8d8123ef1ad8 1705239c_1015_839e_cc01_7ff4d8e46bb2["remove_reaction()"] 1705239c_1015_839e_cc01_7ff4d8e46bb2 -->|calls| 7114b424_5006_2886_1565_8d8123ef1ad8 85925f22_d68e_6c4f_4ede_e0b915dcdbfd["run_test()"] 85925f22_d68e_6c4f_4ede_e0b915dcdbfd -->|calls| 7114b424_5006_2886_1565_8d8123ef1ad8 13759887_b861_b51d_34c2_eae058e70740["create_user_effect()"] 7114b424_5006_2886_1565_8d8123ef1ad8 -->|calls| 13759887_b861_b51d_34c2_eae058e70740 style 7114b424_5006_2886_1565_8d8123ef1ad8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/context.js lines 200–225
export function pop(component) {
var context = /** @type {ComponentContext} */ (component_context);
var effects = context.e;
if (effects !== null) {
context.e = null;
for (var fn of effects) {
create_user_effect(fn);
}
}
if (component !== undefined) {
context.x = component;
}
context.i = true;
component_context = context.p;
if (DEV) {
dev_current_component_function = component_context?.function ?? null;
}
return component ?? /** @type {T} */ ({});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does pop() do?
pop() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/context.js.
Where is pop() defined?
pop() is defined in packages/svelte/src/internal/client/context.js at line 200.
What does pop() call?
pop() calls 1 function(s): create_user_effect.
What calls pop()?
pop() is called by 5 function(s): _mount, execute_derived, remove_reaction, run_test, setContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free