react / useMemo
useMemo will only recompute the memoized value when one of the deps has changed.
| Type Parameter |
|---|
T |
| Parameter | Type |
|---|---|
factory |
() => T |
deps |
DependencyList |
T
16.8.0
https://react.dev/reference/react/useMemo
.pnpm/@types+react@18.3.11/node_modules/@types/react/ts5.0/index.d.ts:2070