Closed dooshiifox closed 1 week ago
Started exploring this: definitely looks like a bug, the moment you access either of der1
,der2
or der3
it starts working again.
It feels like a more elaborate version of #11364 . given that now there are two signals that are unchanged maybe that make a difference?
Describe the bug
I know it's not particularly helpful but the reproduction is the best explainer for this. Essentially it seems chaining multiple deriveds causes state to not update even though it should if one of the older derived's value's didn't change. The provided reproduction is as minimal as I could get it with it still occurring.
If you are experiencing this bug, figure out which state isn't updating correctly and try put that last in the $derived block that should be receiving updates but isn't, or reduce the number of $deriveds you're using.
$inspect
fixes the problem, but remember it won't work in production.Reproduction
https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAA21SX0_jMAz_KlaEdC2H6Ab3tGuH-AycxMP1HtLWY9HSJIrd7aZp3x2nK1AQT63t3x_b8UltjEVSq78n5XSPaqUeQ1A3io8hBbRHyygx-SG2KVNSG03gde1qtshAWz_Y7mnrD4slVHBFrBmzjbaE-W8BCawo4HkrNsBbQ0CIPYE1OwQNe4xHGFyK7DHV3QuwTxgwTuqt77DRhDeTTsQe-wajQDVDiD7ANf4PEYmMd3QNOqKQ-iB2nUiI1tVth9HsJWysb3c0KZEHwyQWjWHovdDem9BOSkI2bLSVzNjxbeK9DS2K47CTcjZfQj4ZSO0O-oESOqDrwLsLT8t_svYDh-Ftge4HQyvOLzjzuJt7pBfxm8m6qqBWxFH2Vat8RrmfU0aJB0EuawUr-S4-g3_NweN8qfGngw6yBQQfpTa1Cwcfd9MSePT5CdnYy3f66eXL4uNSXBnWp2R4LotwSTQDs2zEu9aadledshyqNWRfzonjgPl5_SemV-B0GotlWVy4oiOH2fvObAx2apWw53_nVz_5oyDTAgAA
Logs
No response
System Info
Severity
annoyance