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

Function useInsertionEffect

packages/react-reconciler/src/ReactFiberHooks.js:4046–4054  ·  view source on GitHub ↗
(
      create: () => (() => void) | void,
      deps: Array<mixed> | void | null,
    )

Source from the content-addressed store, hash-verified

4044 return mountImperativeHandle(ref, create, deps);
4045 },
4046 useInsertionEffect(
4047 create: () => (() => void) | void,
4048 deps: Array<mixed> | void | null,
4049 ): void {
4050 currentHookNameInDev = 'useInsertionEffect';
4051 mountHookTypesDev();
4052 checkDepsAreArrayDev(deps);
4053 return mountInsertionEffect(create, deps);
4054 },
4055 useLayoutEffect(
4056 create: () => (() => void) | void,
4057 deps: Array<mixed> | void | null,

Callers 6

CounterFunction · 0.90
ChildFunction · 0.50
CounterAFunction · 0.50
CounterFunction · 0.50
CounterBFunction · 0.50
AppFunction · 0.50

Calls

no outgoing calls

Tested by 6

CounterFunction · 0.72
ChildFunction · 0.40
CounterAFunction · 0.40
CounterFunction · 0.40
CounterBFunction · 0.40
AppFunction · 0.40