MCPcopy
hub / github.com/facebook/react / useMemo

Function useMemo

packages/react/src/ReactHooks.js:143–149  ·  view source on GitHub ↗
(
  create: () => T,
  deps: Array<mixed> | void | null,
)

Source from the content-addressed store, hash-verified

141}
142
143export function useMemo<T>(
144 create: () => T,
145 deps: Array<mixed> | void | null,
146): T {
147 const dispatcher = resolveDispatcher();
148 return dispatcher.useMemo(create, deps);
149}
150
151export function useImperativeHandle<T>(
152 ref: {current: T | null} | ((inst: T | null) => mixed) | null | void,

Callers 15

ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90

Calls 1

resolveDispatcherFunction · 0.70

Tested by 15

ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
useSupportsTouchEventFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72