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

Function getFiberLabel

code/dependency-injection/public/app.js:7609–7617  ·  view source on GitHub ↗
(componentName, isMounted, phase)

Source from the content-addressed store, hash-verified

7607};
7608
7609var getFiberLabel = function (componentName, isMounted, phase) {
7610 if (phase === null) {
7611 // These are composite component total time measurements.
7612 return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
7613 } else {
7614 // Composite component methods.
7615 return componentName + '.' + phase;
7616 }
7617};
7618
7619var beginFiberMark = function (fiber, phase) {
7620 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