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

Function isContextConsumer

code/redux/public/app.js:12603–12605  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

12601 }
12602
12603 function isContextConsumer(fiber) {
12604 return fiber.tag === ClassComponent && fiber.type.contextTypes != null;
12605 }
12606
12607 function isContextProvider(fiber) {
12608 return fiber.tag === ClassComponent && fiber.type.childContextTypes != null;

Callers 1

constructClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected