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

Function getFiberLabel

code/higher-order-components/public/app.js:7510–7518  ·  view source on GitHub ↗
(componentName, isMounted, phase)

Source from the content-addressed store, hash-verified

7508};
7509
7510var getFiberLabel = function (componentName, isMounted, phase) {
7511 if (phase === null) {
7512 // These are composite component total time measurements.
7513 return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
7514 } else {
7515 // Composite component methods.
7516 return componentName + '.' + phase;
7517 }
7518};
7519
7520var beginFiberMark = function (fiber, phase) {
7521 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