-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
False assignment_value_stale
warning when storing state in class and using bind:group
#14687
Comments
Bladesheng
changed the title
False assignment_value_stale warning when storing state in class and using bind:group
False Dec 12, 2024
assignment_value_stale
warning when storing state in class and using bind:group
this is the same issue that I came across related to using a "workaround" for via this comment: #14670 (comment) Meanwhile, using |
This can be reproduced like this also: https://svelte.dev/playground/af047dfa1b1b49239b5c66bdce47ee11?version=5.14.4 |
dummdidumm
added a commit
that referenced
this issue
Jan 8, 2025
6 tasks
dummdidumm
added a commit
that referenced
this issue
Jan 8, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I am getting the
assignment_value_stale
warning when I store state in a class and then bind that state to group of checkboxes. According to the docs, I believe in this case the warning is not relevant and should not be printed.Everything else works as expected though.
When the state is not stored in a class, there is no warning (correct).
When
$state.raw([])
is used instead, there is also no warning.This feels similar to #14643
Reproduction
https://svelte.dev/playground/59525517cbb8474ca7db39aacfa98586?version=5.11.2
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: