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

Function requiredContext

code/composition/public/app.js:12037–12040  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

12035 var rootInstanceStackCursor = createCursor(NO_CONTEXT);
12036
12037 function requiredContext(c) {
12038 !(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;
12039 return c;
12040 }
12041
12042 function getRootHostContainer() {
12043 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