milomg / reactively

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to dispose an effect?

EisenbergEffect opened this issue · comments

Is there an API that one should call when an effect should be disposed? Or is there a way to turn an effect on/off?

Turning off an effect would be relatively easy: set node.effect = false. Cleaning up an effect (and nested effects/computations) is currently out of scope for reactively.