-
-
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
[v5 Runes] Re-assigning NaN
to an already NaN
variable triggers update
#10061
Comments
NaN
to an already NaN
variable triggers reactivityNaN
to an already NaN
variable triggers update
About the first issue:
About the second issue: I think having a logic inconsistency between v5 Classic and v5 Runes could be misleading, and thus is not desirable. |
I stand by my assessment — it would be very wasteful to check for NaN every time. Candidly, if you have NaN somewhere in your state, it's very likely an opportunity for improvement. |
Instead of using |
Nothing, according to this microbenchmark, though I'm not sure I trust it — it violates my expectations quite deeply. |
Quite unexpected for me too
By the way, I do agree falling back to |
Describe the bug
NaN
to an alreadyNaN
variable triggers updateIn v5 Classic (and v4), re-assigning
NaN
to an alreadyNaN
variable doesn't trigger updateReproduction
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACsWQTWvDMAyG_4owhSYQkkNvbhIYu_ew6zJo6iqrmWMbWxmMkP8-4nw07NCx046SXj3iUc8aqdAz_tozXbfIOHuyliWMvuxY-E9UhCxh3nROjJ3cCyctlZWuSLbWOIJnVXsvBTTOtLBPs7lOp-X9JvnSafRrLlT3VJ7d0Tq_HcqZk2e3Q1npfDmTrYEAWMYTexyyhLXmKhuJV8bJdTgkq90MeWwYWtxYkkZ7cCO46JtaeRyW65svKCTQXXtBdxxHFe04CKO9UZgq8x6dA4DDrp9Swzk-_rS9dERGg9FCSfFR9FEMRTlToYBTfRrCrW1nZEx7vziHz_zZ-KEpFLDzVBNG8SIttbco6L9034Zvw2X5Z8wCAAA=
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: