-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as not planned
Description
Describe the bug
State destruction depends on other state?
Reproduction
https://svelte.dev/playground/8927c1b4ff6e4905a459fb4045fecdeb?version=5.20.0
When I destruct value from state_from_file, it's not reactive, as I guess, it should be - desctiruct primitive value not from $state rune)
BUT! When I comment this line:
let state_temp = $state({ vvv: 1 });
value became reactive???
May be I am wrong, but this behavior (value in this case) shouldn't depends on other definition in file (state_from_file in this case)?
Logs
System Info
svelte 5Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels