-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
I like to declare states using "var", because they become more noticeable when reading the code. But using this syntax in .svelte.ts files, sometimes the states are "true" when I'm sure they're false. When I output them using console.log, I was very surprised - instead of false, I got the object of the state itself. It definitely wasn't meant to be that way.
Reproduction
See dev-console
Logs
Object {
f: 0,
v: false,
reactions: null,
equals: equals(value),
version: 0,
}System Info
Svelte version 5.0.0-next.225Severity
annoyance