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

Function shouldIgnoreFiber

code/dependency-injection/public/app.js:7656–7673  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7654};
7655
7656var shouldIgnoreFiber = function (fiber) {
7657 // Host components should be skipped in the timeline.
7658 // We could check typeof fiber.type, but does this work with RN?
7659 switch (fiber.tag) {
7660 case HostRoot:
7661 case HostComponent:
7662 case HostText:
7663 case HostPortal:
7664 case CallComponent:
7665 case ReturnComponent:
7666 case Fragment:
7667 case ContextProvider:
7668 case ContextConsumer:
7669 return true;
7670 default:
7671 return false;
7672 }
7673};
7674
7675var clearPendingPhaseMeasurement = function () {
7676 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