legacy.js — svelte Source File
Architecture documentation for legacy.js, a javascript file in the svelte codebase. 4 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR f0137cbd_ade3_c5ec_547b_b722ffb28e2a["legacy.js"] e5c35d51_28d8_9054_923d_b7f82a3c8dc2["sources.js"] f0137cbd_ade3_c5ec_547b_b722ffb28e2a --> e5c35d51_28d8_9054_923d_b7f82a3c8dc2 fc566ca0_2101_ea1a_cf42_44d2442cc526["internal_set"] f0137cbd_ade3_c5ec_547b_b722ffb28e2a --> fc566ca0_2101_ea1a_cf42_44d2442cc526 bde4209f_8ffc_1594_4024_b1835a44bcf6["runtime.js"] f0137cbd_ade3_c5ec_547b_b722ffb28e2a --> bde4209f_8ffc_1594_4024_b1835a44bcf6 a814b193_e12a_4037_c3c8_dfd45f3bd0bb["untrack"] f0137cbd_ade3_c5ec_547b_b722ffb28e2a --> a814b193_e12a_4037_c3c8_dfd45f3bd0bb bde4209f_8ffc_1594_4024_b1835a44bcf6["runtime.js"] bde4209f_8ffc_1594_4024_b1835a44bcf6 --> f0137cbd_ade3_c5ec_547b_b722ffb28e2a style f0137cbd_ade3_c5ec_547b_b722ffb28e2a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/** @import { Value } from '#client' */
import { internal_set } from './reactivity/sources.js';
import { untrack } from './runtime.js';
/**
* @type {Set<Value> | null}
* @deprecated
*/
export let captured_signals = null;
/**
* Capture an array of all the signals that are read when `fn` is called
* @template T
* @param {() => T} fn
*/
function capture_signals(fn) {
var previous_captured_signals = captured_signals;
try {
captured_signals = new Set();
untrack(fn);
if (previous_captured_signals !== null) {
for (var signal of captured_signals) {
previous_captured_signals.add(signal);
}
}
return captured_signals;
} finally {
captured_signals = previous_captured_signals;
}
}
/**
* Invokes a function and captures all signals that are read during the invocation,
* then invalidates them.
* @param {() => any} fn
* @deprecated
*/
export function invalidate_inner_signals(fn) {
for (var signal of capture_signals(fn)) {
internal_set(signal, signal.v);
}
}
Domain
Subdomains
Dependencies
Imported By
Source
Frequently Asked Questions
What does legacy.js do?
legacy.js is a source file in the svelte codebase, written in javascript. It belongs to the ClientRuntime domain, LegacyBridge subdomain.
What functions are defined in legacy.js?
legacy.js defines 2 function(s): capture_signals, invalidate_inner_signals.
What does legacy.js depend on?
legacy.js imports 4 module(s): internal_set, runtime.js, sources.js, untrack.
What files import legacy.js?
legacy.js is imported by 1 file(s): runtime.js.
Where is legacy.js in the architecture?
legacy.js is located at packages/svelte/src/internal/client/legacy.js (domain: ClientRuntime, subdomain: LegacyBridge, directory: packages/svelte/src/internal/client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free