-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Svelte 5: False positive ownership_invalid_mutation on bind used with state declared in .svelte.ts #12716
Comments
I can't seem to get a warning in the repl. Can you help me reproduce? |
Sorry, my bad. REPL doesn't show this warning. You'll have to reproduce it on your local. This is what I get in my console:
This error doesn't show up if I use a function instead of a class. REPL should have everything included to reproduce it on your local. Please let me know if you need anything else, or if I'm doing something wrong. package.json
Thanks! |
MMM it's weird that it doesn't reproduce in repl, the related issue talks about hmr...maybe it only happens if you modify one of the files to cause hmr? |
This one might be a bit different since I get the same warning with hmr disabled. |
Closing since now I'm getting the same warning as described here 13607 |
Describe the bug
Can't bind state declared in classes like this:
Svelte throws ownership_invalid_mutation warning.
It seems to be related to this issue.
No warning is shown if I use a function instead of a class:
Reproduction
Full reproduction can be found here: REPL
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: