Combines useMemo() with the adapter's computed() so that a computation is not repeated
every render. Keep in mind that local variables captured in the computation lambda will
often be outdated since the same lambda is re-used across multiple renders.
NOTE: with the MobX adapter, computed() can only cache inside an observer() component;
with the default adapter it recomputes on every get().
Combines useMemo() with the adapter's computed() so that a computation is not repeated every render. Keep in mind that local variables captured in the
computationlambda will often be outdated since the same lambda is re-used across multiple renders.NOTE: with the MobX adapter,
computed()can only cache inside anobserver()component; with the default adapter it recomputes on everyget().