MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / getFiberLabel

Function getFiberLabel

code/new-context-api/public/app.js:6877–6885  ·  view source on GitHub ↗
(componentName, isMounted, phase)

Source from the content-addressed store, hash-verified

6875};
6876
6877var getFiberLabel = function (componentName, isMounted, phase) {
6878 if (phase === null) {
6879 // These are composite component total time measurements.
6880 return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
6881 } else {
6882 // Composite component methods.
6883 return componentName + '.' + phase;
6884 }
6885};
6886
6887var beginFiberMark = function (fiber, phase) {
6888 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