use_memo
Memoize a computed value between renders.
Parameters:
-
calculate_value(Callable[[], MemoValueT]) –A function that computes the value to be memoized.
-
dependencies(Sequence[Any] | None, default:None) –If present, the value is only recomputed when one of the dependencies has changed. If absent, the value is only computed on initial render.
Returns:
-
MemoValueT–A memoized value whose identity is stable between renders.