You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, reacting quickly and not thoroughly enough, but this needs a little bit more nuance:
letmyOptionalSet=$state(newSvelteSet());// Somewhere further downmyOptionalSet=null;// This needs the variable to be wrapped in a $state in order for this to be reactive.
Yes, at the same time, it actually is a mistake like 95% of the time... So I think it's a great candidate for a lint rule, the rule just needs to be clever and actually figure out when the $state is really not needed.
Motivation
SvelteMap, SvelteSet, and SvelteURL don't need to be wrapped in $state. but that's not always obvious
Description
per above
Examples
Additional comments
No response
The text was updated successfully, but these errors were encountered: