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

Function shouldIgnoreFiber

code/composition/public/app.js:7701–7718  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7699};
7700
7701var shouldIgnoreFiber = function (fiber) {
7702 // Host components should be skipped in the timeline.
7703 // We could check typeof fiber.type, but does this work with RN?
7704 switch (fiber.tag) {
7705 case HostRoot:
7706 case HostComponent:
7707 case HostText:
7708 case HostPortal:
7709 case CallComponent:
7710 case ReturnComponent:
7711 case Fragment:
7712 case ContextProvider:
7713 case ContextConsumer:
7714 return true;
7715 default:
7716 return false;
7717 }
7718};
7719
7720var clearPendingPhaseMeasurement = function () {
7721 if (currentPhase !== null && currentPhaseFiber !== null) {

Callers 4

startWorkTimerFunction · 0.70
cancelWorkTimerFunction · 0.70
stopWorkTimerFunction · 0.70
stopFailedWorkTimerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected