MCPcopy Create free account
hub / github.com/microsoft/SandDance / getFiberLabel

Function getFiberLabel

docs/external/js/react-dom.development.js:10388–10396  ·  view source on GitHub ↗
(componentName, isMounted, phase)

Source from the content-addressed store, hash-verified

10386 };
10387
10388 var getFiberLabel = function (componentName, isMounted, phase) {
10389 if (phase === null) {
10390 // These are composite component total time measurements.
10391 return componentName + " [" + (isMounted ? 'update' : 'mount') + "]";
10392 } else {
10393 // Composite component methods.
10394 return componentName + "." + phase;
10395 }
10396 };
10397
10398 var beginFiberMark = function (fiber, phase) {
10399 var componentName = getComponentName(fiber.type) || 'Unknown';

Callers 3

beginFiberMarkFunction · 0.85
clearFiberMarkFunction · 0.85
endFiberMarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected