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

Function shouldIgnoreFiber

docs/external/js/react-dom.development.js:10435–10452  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

10433 };
10434
10435 var shouldIgnoreFiber = function (fiber) {
10436 // Host components should be skipped in the timeline.
10437 // We could check typeof fiber.type, but does this work with RN?
10438 switch (fiber.tag) {
10439 case HostRoot:
10440 case HostComponent:
10441 case HostText:
10442 case HostPortal:
10443 case Fragment:
10444 case ContextProvider:
10445 case ContextConsumer:
10446 case Mode:
10447 return true;
10448
10449 default:
10450 return false;
10451 }
10452 };
10453
10454 var clearPendingPhaseMeasurement = function () {
10455 if (currentPhase !== null && currentPhaseFiber !== null) {

Callers 4

startWorkTimerFunction · 0.85
cancelWorkTimerFunction · 0.85
stopWorkTimerFunction · 0.85
stopFailedWorkTimerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected