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

Function isContextConsumer

code/communication/public/app.js:12387–12389  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

12385 }
12386
12387 function isContextConsumer(fiber) {
12388 return fiber.tag === ClassComponent && fiber.type.contextTypes != null;
12389 }
12390
12391 function isContextProvider(fiber) {
12392 return fiber.tag === ClassComponent && fiber.type.childContextTypes != null;

Callers 1

constructClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected