Memoizes a computed value until dependencies change.
Function that creates the value.
Optional
Optional dependency list (or an object for shallow comparison) used to determine when to recompute the value.
Memoized value.
Memoizes a computed value until dependencies change.