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

Function getFiberLabel

code/controlled-uncontrolled/public/app.js:6840–6848  ·  view source on GitHub ↗
(componentName, isMounted, phase)

Source from the content-addressed store, hash-verified

6838};
6839
6840var getFiberLabel = function (componentName, isMounted, phase) {
6841 if (phase === null) {
6842 // These are composite component total time measurements.
6843 return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
6844 } else {
6845 // Composite component methods.
6846 return componentName + '.' + phase;
6847 }
6848};
6849
6850var beginFiberMark = function (fiber, phase) {
6851 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