Closed FoHoOV closed 3 months ago
If it doesn't matter can we consider #11504?
https://github.com/sveltejs/svelte/pull/11287 also fixes the problem described here.
I want to expand on this issue. see this REPL:
delete 2
button - you will see has 2: false
and has 3: false
as currently mentioned has 3: false
shouln't be loggedadd 3
button, you will see has 2: false
and has 3: true- now
has 2: false` is having the same problem explained earlier.it seems like tracking version here is wrong.
a better description is provided in #11727
Describe the bug
With
ReactiveSet
everything is fine grained, for instance doing this:If you press the "delete 2" button, it only logs "has 2: false". But if the value is not there to begin with?
now if you press the "delete 2" button, both "has 2: false" AND "has 3: false" will get logged, it also happens when you add something new.
It might be because of these lines? When a change occures we increase the version, which makes the call to "has 3: false" to be invoked.
Reproduction
1- go this REPL 2- press on "delete 2" button 3- see the logs which also logs "has 3: false" 4- press on "add 2" button 5- see the logs which also logs "has 3: false"
Logs
No response
System Info
Severity
annoyance