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

Function useDeferredValue

packages/react/src/ReactHooks.js:178–181  ·  view source on GitHub ↗
(value: T, initialValue?: T)

Source from the content-addressed store, hash-verified

176}
177
178export function useDeferredValue<T>(value: T, initialValue?: T): T {
179 const dispatcher = resolveDispatcher();
180 return dispatcher.useDeferredValue(value, initialValue);
181}
182
183export function useId(): string {
184 const dispatcher = resolveDispatcher();

Callers 2

EditorFunction · 0.90
AppFunction · 0.50

Calls 1

resolveDispatcherFunction · 0.70

Tested by 1

AppFunction · 0.40