MCPcopy
hub / github.com/react/react / warnIfNotHydrating

Function warnIfNotHydrating

packages/react-reconciler/src/ReactFiberTreeContext.js:280–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278}
279
280function warnIfNotHydrating() {
281 if (__DEV__) {
282 if (!getIsHydrating()) {
283 console.error(
284 'Expected to be hydrating. This is a bug in React. Please file ' +
285 'an issue.',
286 );
287 }
288 }
289}

Callers 7

isForkedChildFunction · 0.85
getForksAtLevelFunction · 0.85
pushTreeForkFunction · 0.85
pushTreeIdFunction · 0.85
pushMaterializedTreeIdFunction · 0.85
getSuspendedTreeContextFunction · 0.85

Calls 2

getIsHydratingFunction · 0.90
errorMethod · 0.65

Tested by

no test coverage detected