Home / Function/ push_reaction_value() — svelte Function Reference

push_reaction_value() — svelte Function Reference

Architecture documentation for the push_reaction_value() function in runtime.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  e1a089d3_d96f_8635_4bb8_56903e891a87["push_reaction_value()"]
  bde4209f_8ffc_1594_4024_b1835a44bcf6["runtime.js"]
  e1a089d3_d96f_8635_4bb8_56903e891a87 -->|defined in| bde4209f_8ffc_1594_4024_b1835a44bcf6
  107a9b3c_9fe4_0721_cb75_6306bf9e5aed["user_derived()"]
  107a9b3c_9fe4_0721_cb75_6306bf9e5aed -->|calls| e1a089d3_d96f_8635_4bb8_56903e891a87
  39208392_58c1_7201_b748_aa74d97cadb9["state()"]
  39208392_58c1_7201_b748_aa74d97cadb9 -->|calls| e1a089d3_d96f_8635_4bb8_56903e891a87
  ea5280ff_3b87_42ee_3823_3570b76a5779["push()"]
  e1a089d3_d96f_8635_4bb8_56903e891a87 -->|calls| ea5280ff_3b87_42ee_3823_3570b76a5779
  style e1a089d3_d96f_8635_4bb8_56903e891a87 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/internal/client/runtime.js lines 94–102

export function push_reaction_value(value) {
	if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & DERIVED) !== 0)) {
		if (current_sources === null) {
			current_sources = [value];
		} else {
			current_sources.push(value);
		}
	}
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does push_reaction_value() do?
push_reaction_value() is a function in the svelte codebase, defined in packages/svelte/src/internal/client/runtime.js.
Where is push_reaction_value() defined?
push_reaction_value() is defined in packages/svelte/src/internal/client/runtime.js at line 94.
What does push_reaction_value() call?
push_reaction_value() calls 1 function(s): push.
What calls push_reaction_value()?
push_reaction_value() is called by 2 function(s): state, user_derived.

Analyze Your Own Codebase

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

Try Supermodel Free