create_my_state() — svelte Function Reference
Architecture documentation for the create_my_state() function in state.svelte.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 5818db44_c3e5_e13d_903f_835d20cee4ae["create_my_state()"] 402ae57d_25dd_6d94_8f48_faa987fc4644["state.svelte.js"] 5818db44_c3e5_e13d_903f_835d20cee4ae -->|defined in| 402ae57d_25dd_6d94_8f48_faa987fc4644 style 5818db44_c3e5_e13d_903f_835d20cee4ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-runes/samples/non-local-mutation-inherited-owner-2/state.svelte.js lines 1–14
export function create_my_state() {
const my_state = $state({
a: 0
});
function inc() {
my_state.a++;
}
return {
my_state,
inc
};
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does create_my_state() do?
create_my_state() is a function in the svelte codebase, defined in packages/svelte/tests/runtime-runes/samples/non-local-mutation-inherited-owner-2/state.svelte.js.
Where is create_my_state() defined?
create_my_state() is defined in packages/svelte/tests/runtime-runes/samples/non-local-mutation-inherited-owner-2/state.svelte.js at line 1.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free