Dominic Gannaway
Dominic Gannaway
This is happening because we're dividing by `0` in several places which is giving us `NaN`. We can either guard against `NaN` and default to `0` or we can come...
This is because we're creating an effect inside a derived, which means that when the derived runs again, the inner effect is destroyed and the reactivity is lost. If we...
I think we need to investigate this more before 5.0, something doesn't seem right here.
> Here's a simple reproduction of fromStore() behaving strangely. I'm not sure whether it's exactly the same issue as the above, but seems related. [REPL](https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACnVSXY-bMBD8K3PuSUfUJITXNCC1Uh_6fO1TqU5glsY6sJG9Ti5C_PfKkA8upz7hHc94ZpftRa0acmL7uxe6aElsxdeuE0vBpy4U7kANk1gKZ7yVAdk5aVXHWa5zjmP8ckr_heOCCdJSwVTBj1htTfvMxlK0OHOfiSBN25Jmh4JRGmbTwhKOeyX3aJQmyMI7cuA9obOmbKhdB3muAdV2xjJ6HK3iomxoeTPBMJ7xNCWOXQCfvgSpNNoxRgDpVRttFvPLguklPPAy8tJb-LEO1Cu5IqsOVL0cisZT-ngu1-UpihZIM_RjXlY1ovt319JbS5qRIdksLsycLbG3-kOMC32iDdOHGkf3wmQzowyL863OufZasjIaSktLYfLR1fZxGsnnFMk4pyHXu_j2d_UtzTS8Lfr_BQzS0jMbDaNlo-Rr2l8dh-zH5biLJ1a2K202d7gbj7FINtiifzfr0J3ePaxW-LlXDpUhB20YR2NfUTjQW0cyLCBWq-zMvLeAmjSWCsnqQPCaVQM1IXtySJKZ_JtnsD1d1jbstfFjPkutOYQ6bOonVU_bW1JjjpM-132A33Uw_ncM398kUUUVks1DH6t63hh9XIOQ-Zp33ufZRyxFaypVK6rElq2n4c_wD8x0awHZAwAA) > > (edited as posted...
I actually love this a lot. Simplifies a ton of things along the way too.
Inspect effects don't mutate anything, so they're harmless to the reactive graph.
> Out-of-order triggering `$inspect` also suffers from this issue, but given you're using it purely for debugging, people are happy to work around its issues. For example it [fires out...
@mimbrown We used to have an unofficial sync effect but it was far too buggy and caused so many issues because of the async effects having a different timing and...
> I don’t know if it is worth going down this rabbit hole of trying to add a sync effect when it seems that it’s more likely to solve the...
> There's probably an alternative solution to _this_ problem, but I doubt this is the only time a sync effect would be useful. Here's what [the Vue docs](https://vuejs.org/api/reactivity-core.html#watcheffect) say: >...