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

Function isContextConsumer

code/new-context-api/public/app.js:11713–11715  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

11711 }
11712
11713 function isContextConsumer(fiber) {
11714 return fiber.tag === ClassComponent && fiber.type.contextTypes != null;
11715 }
11716
11717 function isContextProvider(fiber) {
11718 return fiber.tag === ClassComponent && fiber.type.childContextTypes != null;

Callers 1

constructClassInstanceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected