is_prop_source() — svelte Function Reference
Architecture documentation for the is_prop_source() function in utils.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 5f828ae1_5f83_74a8_876a_ea54ea47b588["is_prop_source()"] c518b20b_2355_7b11_4ac2_2d9bb5dcfb43["utils.js"] 5f828ae1_5f83_74a8_876a_ea54ea47b588 -->|defined in| c518b20b_2355_7b11_4ac2_2d9bb5dcfb43 fa0e8946_29c3_f58a_ab56_307427332bf0["Program()"] fa0e8946_29c3_f58a_ab56_307427332bf0 -->|calls| 5f828ae1_5f83_74a8_876a_ea54ea47b588 dbadea0c_9bb0_dd96_41bd_09a33169352f["VariableDeclaration()"] dbadea0c_9bb0_dd96_41bd_09a33169352f -->|calls| 5f828ae1_5f83_74a8_876a_ea54ea47b588 style 5f828ae1_5f83_74a8_876a_ea54ea47b588 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/3-transform/client/utils.js lines 116–127
export function is_prop_source(binding, state) {
return (
(binding.kind === 'prop' || binding.kind === 'bindable_prop') &&
(!state.analysis.runes ||
state.analysis.accessors ||
binding.reassigned ||
binding.initial ||
// Until legacy mode is gone, we also need to use the prop source when only mutated is true,
// because the parent could be a legacy component which needs coarse-grained reactivity
binding.updated)
);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does is_prop_source() do?
is_prop_source() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/utils.js.
Where is is_prop_source() defined?
is_prop_source() is defined in packages/svelte/src/compiler/phases/3-transform/client/utils.js at line 116.
What calls is_prop_source()?
is_prop_source() is called by 2 function(s): Program, VariableDeclaration.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free