You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
an untracked function that will run if that tracked value changes
an options object with things like if the reaction should run immediately or only after a first change, a comparator to compare values returned by the first function, etc.
when - an auto disposable reaction that runs only once when tracked method returns true (plus a cool overload that turns that into a promise)
that also separates what's tracked from what should run untracked when the tracked value changes
Describe the proposed solution
Although I think this could be implemented in userland with $effect + untracked, probably it would be worth to add a $reaction rune that's already implemented in the framework?
Importance
would make my life easier
The text was updated successfully, but these errors were encountered:
xaviergonz
changed the title
$effect overload that separates tracking from execution ($reaction?)
$effect that separates tracking from execution ($reaction?)
Jul 29, 2024
Describe the problem
In mobx there are several ways to run "effects" - https://mobx.js.org/reactions.html
solid.js also has something similar to reactions:
that also separates what's tracked from what should run untracked when the tracked value changes
Describe the proposed solution
Although I think this could be implemented in userland with $effect + untracked, probably it would be worth to add a $reaction rune that's already implemented in the framework?
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: