MCPcopy Index your code
hub / github.com/react/react / isContextProvider

Function isContextProvider

packages/react-reconciler/src/ReactFiberLegacyContext.js:120–127  ·  view source on GitHub ↗
(type: Function)

Source from the content-addressed store, hash-verified

118}
119
120function isContextProvider(type: Function): boolean {
121 if (disableLegacyContext) {
122 return false;
123 } else {
124 const childContextTypes = type.childContextTypes;
125 return childContextTypes !== null && childContextTypes !== undefined;
126 }
127}
128
129function popContext(fiber: Fiber): void {
130 if (disableLegacyContext) {

Callers 2

getUnmaskedContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected