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

Function if

packages/react-reconciler/src/ReactFiberHooks.js:322–331  ·  view source on GitHub ↗
(__DEV__)

Source from the content-addressed store, hash-verified

320
321function updateHookTypesDev(): void {
322 if (__DEV__) {
323 const hookName = ((currentHookNameInDev: any): HookType);
324
325 if (hookTypesDev !== null) {
326 hookTypesUpdateIndexDev++;
327 if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
328 warnOnHookMismatchInDev(hookName);
329 }
330 }
331 }
332}
333
334function checkDepsAreArrayDev(deps: mixed): void {

Callers 1

ReactFiberHooks.jsFile · 0.70

Calls 13

requestDeferredLaneFunction · 0.90
mergeLanesFunction · 0.90
markSkippedUpdateLanesFunction · 0.90
peekEntangledActionLaneFunction · 0.90
areHookInputsEqualFunction · 0.85
isFunction · 0.85
joinMethod · 0.80
keysMethod · 0.80
errorMethod · 0.65
thenMethod · 0.65
getServerSnapshotFunction · 0.50
createFunction · 0.50

Tested by

no test coverage detected