restoreSignalsOnProps() — astro Function Reference
Architecture documentation for the restoreSignalsOnProps() function in signals.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 88637567_e9bb_396a_f3c1_0a95236f3534["restoreSignalsOnProps()"] 4b26ab17_02c6_6dd0_7b9f_13b28a462719["signals.ts"] 88637567_e9bb_396a_f3c1_0a95236f3534 -->|defined in| 4b26ab17_02c6_6dd0_7b9f_13b28a462719 style 88637567_e9bb_396a_f3c1_0a95236f3534 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/preact/src/signals.ts lines 16–29
export function restoreSignalsOnProps(ctx: Context, props: Record<string, any>) {
// Restore signal props that were mutated for serialization
let propMap: PropNameToSignalMap;
if (ctx.propsToSignals.has(props)) {
propMap = ctx.propsToSignals.get(props)!;
} else {
propMap = new Map();
ctx.propsToSignals.set(props, propMap);
}
for (const [key, signal] of propMap) {
props[key] = signal;
}
return propMap;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does restoreSignalsOnProps() do?
restoreSignalsOnProps() is a function in the astro codebase, defined in packages/integrations/preact/src/signals.ts.
Where is restoreSignalsOnProps() defined?
restoreSignalsOnProps() is defined in packages/integrations/preact/src/signals.ts at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free