MCPcopy Create free account
hub / github.com/reactjs/react-rails / requiredContext

Function requiredContext

lib/assets/react-source/development/react.js:18098–18106  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

18096 var rootInstanceStackCursor = createCursor(NO_CONTEXT);
18097
18098 function requiredContext(c) {
18099 if (!(c !== NO_CONTEXT)) {
18100 {
18101 throw Error( "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." );
18102 }
18103 }
18104
18105 return c;
18106 }
18107
18108 function getRootHostContainer() {
18109 var rootInstance = requiredContext(rootInstanceStackCursor.current);

Callers 3

getRootHostContainerFunction · 0.85
getHostContextFunction · 0.85
pushHostContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected