-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[Svelte5] what is state_descriptors_fixed [ChatJs] #13689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
thanks.. https://svelte-5-preview.vercel.app/docs/runes#$state-snapshot Thank you. I understand that Chart.js is highly reactive! |
In the svelte5 documentation, it is recommended to use $effect rune instead of update/delete functions(there) so i find a way to use it: svelte playground the key here is not pass $state as a param to action, instead, let the action capture it.Then just use $state.snapshot when passing $state into the Chart constructor. But I don't know if this is the best practice! Please correct me if there is a better way to do it😂 |
Describe the bug
error: state_descriptors_fixed Property descriptors defined on
$state
objects must containvalue
and always beenumerable
,configurable
andwritable
Reproduction
Svelte4
https://svelte.dev/repl/8537ceb650cc42b89d0927807c0124f1?version=4.2.19
Svelte5
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACo1UbWvbMBD-K4e2DymIJnZXRrwk0LXQjx1jdGxRGIp9adwpkpHOKcX4vxfJebPjjvmLT8-9POfnzqrYKlfoWDKvmJYbZAm7KQrGGb0W_uC2qAgZZ86UNvXIxKU2L2gmtKB8UxhLcLuWlmBlzQYES_3h8tkNZUlGsC8-TiFBwO8kSZgCfHQkCQe6VOqiHfGwfMaUYNoNAfAhmST5w9xbWayPIfMo5hCNOVxxuOYQByMacYhHwRx7axTeEYd4ERi1oFWpU8qN9sT6CX1vgwuovEtQm6mhuOYQXXGIPUnE4XMDeb5R00C8f0ccPo0XvlIdynXYLA20yZCH7zlQHiIcUlkEUQd_WhGC2hppfGnE35WrvE7N4-eXgGBLaQXjR9zXS04DAZRconIJzE9BAMG-Y9bKbdCvqsQe-BcqZV56HPcWUffg30pbqL5KD9aP492MuMfzKFUfHMbX57iTRQddtE5eJYd0LkrVPu7E80J_ALOCR0Pozvj2qodhnvmWxmZof-YZrROIOu763SZPPabwe-M6c3WpVNgFAV7PEIAlPuX6hn6jNQmQLfGfbdS9bdTNn7xfeTrZ4rDEDWqRSquPC10Wmf-HO2veWvTLDB1Z8zrYE_RVP7h8Q411SPv_uvXJF9RCT4bHy05PliWR0WB0qvL077Q6Xhv17DbYYc6TYRM4E3qS5duZ12eSSr2VDlIlnZvuLknBoHSYBHtanVw49dDnDn0y42xjsnyVY8YSP5h6Ub8BvrvgrbQFAAA=
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: