-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Derived value not receiving updates #16090
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
Comments
This PR introduced this regression: #15137 |
This seems much more nasty than what i thought and the issue seems to be reproducible only in dev mode. ( In production mode the app behaves as expected. ( |
That's odd, I remember experiencing it in prod mode as well. I was using the esbuild svelte plugin tho, maybe it passes |
Try again perhaps, svelte codebase changed since then so maybe the issue got fixed indirectly but only in prod mode that sounds weird to me as well. What i did was: create svelte proj with Only The way i found out about this is because i was unable to write a test in svelte that would fail for this case and then i forced |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When a value twice derived is used in a computed expression which is the value of a prop/argument of a component/snippet with a default value it may not always receive updates when the underlying state changes. Please see the reproduction section for more details.
Occurs in versions 5.19.5 and above.
Reproduction
See minimal reproducible example in the repls below:
Displays 0, incorrect
[email protected]
Displays 1, correct
[email protected]
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: