-
-
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
Derived stores with multiple dependencies don't always update. #3191
Comments
The issue here is that svelte/src/runtime/store/index.ts Lines 162 to 165 in 83be1f3
But not necessarily updated: svelte/src/runtime/store/index.ts Lines 68 to 75 in 83be1f3
|
One of my apps (>1000 stores) is dead in the water until this is fixed. Any thoughts on what can be done? |
To get around this issue, one can use a https://svelte.dev/repl/14d838206c5c4114b16ce51a4bb3ec71?version=3.6.7 |
Derived store reruns subscribers if it's value has not changed when synced. All invalidators of subscribers are run on a derived store when invalidated. See sveltejs#2955
I have a hotfix for v3.6.7 at:
|
Derived store reruns subscribers if it's value has not changed when synced. All invalidators of subscribers are run on a derived store when invalidated. See sveltejs#2955
v3.6.8 hotfix "svelte": "btakita/svelte#3.6.8-gh-3191-hotfix" @Rich-Harris What are your thoughts on #3219? Thank you |
Breadth First Subscriber Resolution
When a store has multiple dependencies it won't always update when those dependencies update. This is only present when one of the dependencies is derived from the other dependency (I think).
REPL
Thanks to @Conduitry's detective work, it seems like this bug was possibly introduced by #2955.
The text was updated successfully, but these errors were encountered: