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

Function describeFiber

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

Source from the content-addressed store, hash-verified

3898}
3899
3900function describeFiber(fiber) {
3901 switch (fiber.tag) {
3902 case IndeterminateComponent:
3903 case FunctionalComponent:
3904 case ClassComponent:
3905 case HostComponent:
3906 var owner = fiber._debugOwner;
3907 var source = fiber._debugSource;
3908 var name = getComponentName(fiber);
3909 var ownerName = null;
3910 if (owner) {
3911 ownerName = getComponentName(owner);
3912 }
3913 return describeComponentFrame(name, source, ownerName);
3914 default:
3915 return '';
3916 }
3917}
3918
3919// This function can only be called with a work-in-progress fiber and
3920// only during begin or complete phase. Do not call it under any other

Callers 1

Calls 2

getComponentNameFunction · 0.70
describeComponentFrameFunction · 0.70

Tested by

no test coverage detected