push() — svelte Function Reference
Architecture documentation for the push() function in context.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD ea5280ff_3b87_42ee_3823_3570b76a5779["push()"] 48cf26f8_bf34_fd7a_3d52_cc963051e167["context.js"] ea5280ff_3b87_42ee_3823_3570b76a5779 -->|defined in| 48cf26f8_bf34_fd7a_3d52_cc963051e167 12342fb2_7ca7_b519_b701_5203cbd52362["onMount()"] 12342fb2_7ca7_b519_b701_5203cbd52362 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 c08d3420_7d20_e19c_0153_146d66a863ae["beforeUpdate()"] c08d3420_7d20_e19c_0153_146d66a863ae -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 bd048183_b650_51b0_e984_fca62b862f69["afterUpdate()"] bd048183_b650_51b0_e984_fca62b862f69 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 af7a3d2c_ef51_8bd4_b88c_e1d52a36db1e["bind_group()"] af7a3d2c_ef51_8bd4_b88c_e1d52a36db1e -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 9a4a3f08_7a6a_f871_c243_a35a6690f3f7["run()"] 9a4a3f08_7a6a_f871_c243_a35a6690f3f7 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 6ac29608_bb3f_4976_22d6_2651518ca4bc["execute_derived()"] 6ac29608_bb3f_4976_22d6_2651518ca4bc -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 9764bb93_860c_6dee_2112_890b69ee0aa3["create_effect()"] 9764bb93_860c_6dee_2112_890b69ee0aa3 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 61387353_b966_b4f7_d65e_52c75ac7ff61["user_effect()"] 61387353_b966_b4f7_d65e_52c75ac7ff61 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 ec90eacc_f7f8_e67c_0b88_cac225152c82["legacy_pre_effect()"] ec90eacc_f7f8_e67c_0b88_cac225152c82 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 c99e6fc8_1796_50f2_d30f_23492c8cd8dd["pause_children()"] c99e6fc8_1796_50f2_d30f_23492c8cd8dd -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 03788141_01d2_5299_6e22_4211e661afe4["mutable_source()"] 03788141_01d2_5299_6e22_4211e661afe4 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 fc566ca0_2101_ea1a_cf42_44d2442cc526["internal_set()"] fc566ca0_2101_ea1a_cf42_44d2442cc526 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 95c17f0f_1042_263c_3de2_f8ab899408b0["_mount()"] 95c17f0f_1042_263c_3de2_f8ab899408b0 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779 style ea5280ff_3b87_42ee_3823_3570b76a5779 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/context.js lines 177–193
export function push(props, runes = false, fn) {
component_context = {
p: component_context,
i: false,
c: null,
e: null,
s: props,
x: null,
l: legacy_mode_flag && !runes ? { s: null, u: null, $: [] } : null
};
if (DEV) {
// component function
component_context.function = fn;
dev_current_component_function = fn;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does push() do?
push() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/context.js.
Where is push() defined?
push() is defined in packages/svelte/src/internal/client/context.js at line 177.
What calls push()?
push() is called by 20 function(s): $on, _mount, afterUpdate, beforeUpdate, bind_group, create_effect, execute_derived, get, and 12 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free