without_reactive_context() — svelte Function Reference
Architecture documentation for the without_reactive_context() function in shared.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD e95d0513_ce71_430f_7ef3_577e736f42c1["without_reactive_context()"] af7441d2_339a_2db1_88df_90dba2875c10["shared.js"] e95d0513_ce71_430f_7ef3_577e736f42c1 -->|defined in| af7441d2_339a_2db1_88df_90dba2875c10 140e2114_da40_4679_bc9f_599a89c67e4e["listen_to_event_and_reset_event()"] 140e2114_da40_4679_bc9f_599a89c67e4e -->|calls| e95d0513_ce71_430f_7ef3_577e736f42c1 8fa6bd71_c8f4_43c7_f2d8_d71e02986e25["bind_window_scroll()"] 8fa6bd71_c8f4_43c7_f2d8_d71e02986e25 -->|calls| e95d0513_ce71_430f_7ef3_577e736f42c1 82899144_646e_3571_241a_8c4654937f98["bind_window_size()"] 82899144_646e_3571_241a_8c4654937f98 -->|calls| e95d0513_ce71_430f_7ef3_577e736f42c1 12245a28_3cec_3119_faa7_968496e0db88["create_event()"] 12245a28_3cec_3119_faa7_968496e0db88 -->|calls| e95d0513_ce71_430f_7ef3_577e736f42c1 df3eb428_b4f0_dfc3_ea43_9d12d88502ee["dispatch_event()"] df3eb428_b4f0_dfc3_ea43_9d12d88502ee -->|calls| e95d0513_ce71_430f_7ef3_577e736f42c1 44764042_8b9f_4b88_947a_7c8b4732666d["transition()"] 44764042_8b9f_4b88_947a_7c8b4732666d -->|calls| e95d0513_ce71_430f_7ef3_577e736f42c1 5ca6cce3_c139_2ec0_550b_59f1139f113b["destroy_effect_children()"] 5ca6cce3_c139_2ec0_550b_59f1139f113b -->|calls| e95d0513_ce71_430f_7ef3_577e736f42c1 9e5743e3_8b9e_0ad6_5140_1a5ffaca62cd["update_reaction()"] 9e5743e3_8b9e_0ad6_5140_1a5ffaca62cd -->|calls| e95d0513_ce71_430f_7ef3_577e736f42c1 311ef9f4_9b68_c178_c1db_3b8696f7d964["set_active_reaction()"] e95d0513_ce71_430f_7ef3_577e736f42c1 -->|calls| 311ef9f4_9b68_c178_c1db_3b8696f7d964 55623862_10b7_5361_e30b_34ec6941f1a7["set_active_effect()"] e95d0513_ce71_430f_7ef3_577e736f42c1 -->|calls| 55623862_10b7_5361_e30b_34ec6941f1a7 style e95d0513_ce71_430f_7ef3_577e736f42c1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/client/dom/elements/bindings/shared.js lines 38–49
export function without_reactive_context(fn) {
var previous_reaction = active_reaction;
var previous_effect = active_effect;
set_active_reaction(null);
set_active_effect(null);
try {
return fn();
} finally {
set_active_reaction(previous_reaction);
set_active_effect(previous_effect);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does without_reactive_context() do?
without_reactive_context() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/dom/elements/bindings/shared.js.
Where is without_reactive_context() defined?
without_reactive_context() is defined in packages/svelte/src/internal/client/dom/elements/bindings/shared.js at line 38.
What does without_reactive_context() call?
without_reactive_context() calls 2 function(s): set_active_effect, set_active_reaction.
What calls without_reactive_context()?
without_reactive_context() is called by 8 function(s): bind_window_scroll, bind_window_size, create_event, destroy_effect_children, dispatch_event, listen_to_event_and_reset_event, transition, update_reaction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free