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
When a derived store is unsubscribed from another derived store sharing the same dependency, it is unsubscribed from twice and then started without any subscribers.
As far as I understand, here is a timeline of events for the following example:
store3 is subscribed
store3 subscribes to store1 as a dependency
store1 is true, so store3 subscribes to store2
store2 subscribes to store1 as a dependency
store1 is set to false
store3 receives update from store1 and unsubscribes from store2
store2 receives update from store1, its stop function is run again, and then it is started without any subscribers
Describe the bug
When a derived store is unsubscribed from another derived store sharing the same dependency, it is unsubscribed from twice and then started without any subscribers.
As far as I understand, here is a timeline of events for the following example:
Reproduction
Logs
store2 started store2 stopped store2 stopped already unsubscribed! store2 started
System Info
npmPackages: svelte: ^3.55.1 => 3.55.1
Severity
annoyance
The text was updated successfully, but these errors were encountered: