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

Function isContextConsumer

code/styling/public/app.js:12352–12354  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

12350 }
12351
12352 function isContextConsumer(fiber) {
12353 return fiber.tag === ClassComponent && fiber.type.contextTypes != null;
12354 }
12355
12356 function isContextProvider(fiber) {
12357 return fiber.tag === ClassComponent && fiber.type.childContextTypes != null;

Callers 1

constructClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected