MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / requiredContext

Function requiredContext

code/dependency-injection/public/app.js:11992–11995  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

11990 var rootInstanceStackCursor = createCursor(NO_CONTEXT);
11991
11992 function requiredContext(c) {
11993 !(c !== NO_CONTEXT) ? invariant(false, 'Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.') : void 0;
11994 return c;
11995 }
11996
11997 function getRootHostContainer() {
11998 var rootInstance = requiredContext(rootInstanceStackCursor.current);

Callers 3

getRootHostContainerFunction · 0.70
getHostContextFunction · 0.70
pushHostContextFunction · 0.70

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected