mirror of https://github.com/sveltejs/svelte
fix: ensure sources within nested effects still register correctly (#16193)
* fix: ensure sources within nested effects still register correctly When an effect creates another effect and a proxy property is read that wasn't before, the proxy will have logic where it creates the new signal in its original reaction context. But it did not have logic to correctly handle the `reaction_sources` array which prevents effects/deriveds rerunning when state created inside themselves is read and then changed inside them: Since `reaction_sources` wasn't take the reaction context into account, false positives could occur where nested effects would not register the sources as dependencies. Fixes #15870 * oops forgot to push thispull/16195/head
parent
0524d16215
commit
061ab31d23
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure sources within nested effects still register correctly
|
Loading…
Reference in new issue