Home / Function/ set_component_context() — svelte Function Reference

set_component_context() — svelte Function Reference

Architecture documentation for the set_component_context() function in context.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  7a5dcc8e_a227_a041_3278_04368ddf1422["set_component_context()"]
  48cf26f8_bf34_fd7a_3d52_cc963051e167["context.js"]
  7a5dcc8e_a227_a041_3278_04368ddf1422 -->|defined in| 48cf26f8_bf34_fd7a_3d52_cc963051e167
  db550759_ee3b_160c_8afa_d1aa9fae478c["fn()"]
  db550759_ee3b_160c_8afa_d1aa9fae478c -->|calls| 7a5dcc8e_a227_a041_3278_04368ddf1422
  61349edc_4397_493f_bcdc_aa9a9b92ec3c["capture()"]
  61349edc_4397_493f_bcdc_aa9a9b92ec3c -->|calls| 7a5dcc8e_a227_a041_3278_04368ddf1422
  df71411d_ad64_65b8_da29_e77890377349["unset_context()"]
  df71411d_ad64_65b8_da29_e77890377349 -->|calls| 7a5dcc8e_a227_a041_3278_04368ddf1422
  9e5743e3_8b9e_0ad6_5140_1a5ffaca62cd["update_reaction()"]
  9e5743e3_8b9e_0ad6_5140_1a5ffaca62cd -->|calls| 7a5dcc8e_a227_a041_3278_04368ddf1422
  style 7a5dcc8e_a227_a041_3278_04368ddf1422 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/context.js lines 14–16

export function set_component_context(context) {
	component_context = context;
}

Domain

Subdomains

Frequently Asked Questions

What does set_component_context() do?
set_component_context() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/context.js.
Where is set_component_context() defined?
set_component_context() is defined in packages/svelte/src/internal/client/context.js at line 14.
What calls set_component_context()?
set_component_context() is called by 4 function(s): capture, fn, unset_context, update_reaction.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free