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

Function getFiberLabel

code/communication/public/app.js:7551–7559  ·  view source on GitHub ↗
(componentName, isMounted, phase)

Source from the content-addressed store, hash-verified

7549};
7550
7551var getFiberLabel = function (componentName, isMounted, phase) {
7552 if (phase === null) {
7553 // These are composite component total time measurements.
7554 return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
7555 } else {
7556 // Composite component methods.
7557 return componentName + '.' + phase;
7558 }
7559};
7560
7561var beginFiberMark = function (fiber, phase) {
7562 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