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

Function getFiberLabel

code/one-direction-data-flow/public/app.js:7389–7397  ·  view source on GitHub ↗
(componentName, isMounted, phase)

Source from the content-addressed store, hash-verified

7387};
7388
7389var getFiberLabel = function (componentName, isMounted, phase) {
7390 if (phase === null) {
7391 // These are composite component total time measurements.
7392 return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
7393 } else {
7394 // Composite component methods.
7395 return componentName + '.' + phase;
7396 }
7397};
7398
7399var beginFiberMark = function (fiber, phase) {
7400 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