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

Function useLayoutEffect

packages/react-debug-tools/src/ReactDebugHooks.js:352–365  ·  view source on GitHub ↗
(
  create: () => (() => void) | void,
  inputs: Array<mixed> | void | null,
)

Source from the content-addressed store, hash-verified

350}
351
352function useLayoutEffect(
353 create: () => (() => void) | void,
354 inputs: Array<mixed> | void | null,
355): void {
356 nextHook();
357 hookLog.push({
358 displayName: null,
359 primitive: 'LayoutEffect',
360 stackError: new Error(),
361 value: create,
362 debugInfo: null,
363 dispatcherHookName: 'LayoutEffect',
364 });
365}
366
367function useInsertionEffect(
368 create: () => mixed,

Callers 14

EffectWithStateFunction · 0.90
Timeline.jsFile · 0.90
CanvasPage.jsFile · 0.90
useSmartTooltipFunction · 0.90
useIsOverflowingFunction · 0.90
useLocalStorageFunction · 0.90
DevTools.jsFile · 0.90
ComponentsFunction · 0.90
TreeContextControllerFunction · 0.90
OwnersStack.jsFile · 0.90
SuspenseTab.jsFile · 0.90

Calls 2

nextHookFunction · 0.85
pushMethod · 0.65

Tested by 1

CounterFunction · 0.40