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

Function isContextConsumer

code/third-party/public/app.js:11585–11587  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11583 }
11584
11585 function isContextConsumer(fiber) {
11586 return fiber.tag === ClassComponent && fiber.type.contextTypes != null;
11587 }
11588
11589 function isContextProvider(fiber) {
11590 return fiber.tag === ClassComponent && fiber.type.childContextTypes != null;

Callers 1

constructClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected