Accepts a val from anywhere and returns the latest derived value. Re-rendering is triggered when the derived value changes.
A val of value
A pure function that takes an input value and returns a new value.
Optional
ValConfig of Val or just the eager. Default true.
ValConfig
eager
true
the derived value
the derived value, or undefined if val is undefined
Accepts a val from anywhere and returns the latest derived value. Re-rendering is triggered when the derived value changes.