Closed
Description
Describe the bug
When binding a variable declared with $state.frozen
to a child component, reassigning the prop in the child component throws an error. The child component wraps it in a Proxy object, which is incompatible with $state.frozen
.
Error: state_frozen_invalid_argument The argument to `$state.frozen(...)` cannot be an object
created with `$state(...)`. You should create a copy of it first, for example with `$state.snapshot`
Reproduction
Logs
No response
System Info
Svelte 5.0.0-next.216
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels