-
-
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
Warning: Properties of objects and arrays are not reactive unless in runes mode #13811
Comments
This is also reproduced with typescript enams |
The warning is telling you that if You can ignore the warning using // svelte-ignore reactive_declaration_non_reactive_property |
In my case I don't really like the idea of monkey patching everywhere with comments) |
The problem is probably that components are analyzed in isolation, possibly without type information from the outside; at least that used to be the case previously. |
Yup this is correct |
Tricky rule |
* Update to stable Svelte 5 release This causes a bunch of warnings to be omitted: ts/routes/graphs/RangeBox.svelte:52:18 Warn: Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update (svelte) break; case RevlogRange.All: $days = 0; They are triggered on enum references, and it appears to be a bug. May need to report it to Svelte? * Deps update * Silence spurious errors + fix a real one sveltejs/svelte#13811
here's a Svelte 5 upgrade PR that has lots of ignores related to this warning if you want to see some examples: immich-app/immich#13738 |
Describe the bug
Hi, I just updated svelte to version 5, and I get this warning
There is obviously some bug in the analyzer. I do not mutate the object, but read its property
Reproduction
https://svelte.dev/playground/d38ff4e52c9c4b1cb7b5314a662e479a?version=5.0.5
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: