MCPcopy Create free account
hub / github.com/caseywebdev/react-list / getComponentNameFromOwner

Function getComponentNameFromOwner

docs/index.js:18881–18887  ·  view source on GitHub ↗
(owner)

Source from the content-addressed store, hash-verified

18879 return null;
18880 }
18881 function getComponentNameFromOwner(owner) {
18882 return "number" === typeof owner.tag
18883 ? getComponentNameFromFiber(owner)
18884 : "string" === typeof owner.name
18885 ? owner.name
18886 : null;
18887 }
18888 function getComponentNameFromFiber(fiber) {
18889 var type = fiber.type;
18890 switch (fiber.tag) {

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…