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

Function describeFiber

code/redux/public/app.js:4151–4168  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

4149}
4150
4151function describeFiber(fiber) {
4152 switch (fiber.tag) {
4153 case IndeterminateComponent:
4154 case FunctionalComponent:
4155 case ClassComponent:
4156 case HostComponent:
4157 var owner = fiber._debugOwner;
4158 var source = fiber._debugSource;
4159 var name = getComponentName(fiber);
4160 var ownerName = null;
4161 if (owner) {
4162 ownerName = getComponentName(owner);
4163 }
4164 return describeComponentFrame(name, source, ownerName);
4165 default:
4166 return '';
4167 }
4168}
4169
4170// This function can only be called with a work-in-progress fiber and
4171// 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