use_callback
use_callback
#
Memoize a function identity between renders.
PARAMETER | DESCRIPTION |
---|---|
fn
|
A function to memoize.
TYPE:
|
dependencies
|
If present, fn is only re-memoized when one of the dependencies has changed. If absent, fn is only memoized on initial render. |
RETURNS | DESCRIPTION |
---|---|
Callable[P, R]
|
A memoized version of the function whose identity is stable between renders. |