DEV Community

Discussion on: Building a Reactive Library from Scratch

Collapse
 
ryansolid profile image
Ryan Carniato

This is true until you move to updating multiple signals in the same transaction. Then things get more complicated because you have to start somewhere but if you notify and execute off one signal and one of the descendants also depends on the other that changed you'd end up running it twice with a naive approach. Not to mention if you allow derivations to conditionally notify, like only if their value changes, simple approaches don't work.

Collapse
 
lukasbombach profile image
Lukas Bombach

Ah, makes sense! Thank you!