MCPcopy
hub / github.com/sveltejs/svelte / push_reaction_value

Function push_reaction_value

packages/svelte/src/internal/client/runtime.js:99–103  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

97
98/** @param {Value} value */
99export function push_reaction_value(value) {
100 if (active_reaction !== null && (!async_mode_flag || (active_reaction.f & DERIVED) !== 0)) {
101 (current_sources ??= new Set()).add(value);
102 }
103}
104
105/**
106 * The dependencies of the reaction that is currently being executed. In many cases,

Callers 2

stateFunction · 0.90
user_derivedFunction · 0.90

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…