useState
Represents a single, mutable value of any type. It starts at the provided initial value and can be changed later, triggering a rebuild in the process.
useEffect
Registers a function to run after the build whenever any of the keys change. The function can optionally return a "dispose" callback, called before the next run and when the hook's context is destroyed.
useMemoized
Caches the result of a synchronous function and returns it on subsequent builds, recomputing only when any of the keys change. An optional dispose callback can clean up the previous result.
useValueChanged
Watches a value and runs a callback whenever it changes (compared via ==), passing the previous value and the previous result. Returns the latest result, or null before the first change.
useValueWrapper
Wraps a value in a stable holder whose .value is updated to the latest value on every build. The holder identity stays the same across builds, so a closure can capture it once and still read fresh values.
useWithSelf
Builds a value that needs a stable reference to itself. The block receives a Value holding the very object it returns, so callbacks inside it can reach the finished result without a chicken-and-egg problem.
useIsMounted
Returns a function that reports whether the hook's context is still mounted. Call it inside async callbacks before touching state, so updates that resolve after teardown are skipped.