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

Function getFiberLabel

code/styling/public/app.js:7516–7524  ·  view source on GitHub ↗
(componentName, isMounted, phase)

Source from the content-addressed store, hash-verified

7514};
7515
7516var getFiberLabel = function (componentName, isMounted, phase) {
7517 if (phase === null) {
7518 // These are composite component total time measurements.
7519 return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
7520 } else {
7521 // Composite component methods.
7522 return componentName + '.' + phase;
7523 }
7524};
7525
7526var beginFiberMark = function (fiber, phase) {
7527 var componentName = getComponentName(fiber) || 'Unknown';

Callers 3

beginFiberMarkFunction · 0.70
clearFiberMarkFunction · 0.70
endFiberMarkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected