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

Function shouldIgnoreFiber

code/one-direction-data-flow/public/app.js:7436–7453  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7434};
7435
7436var shouldIgnoreFiber = function (fiber) {
7437 // Host components should be skipped in the timeline.
7438 // We could check typeof fiber.type, but does this work with RN?
7439 switch (fiber.tag) {
7440 case HostRoot:
7441 case HostComponent:
7442 case HostText:
7443 case HostPortal:
7444 case CallComponent:
7445 case ReturnComponent:
7446 case Fragment:
7447 case ContextProvider:
7448 case ContextConsumer:
7449 return true;
7450 default:
7451 return false;
7452 }
7453};
7454
7455var clearPendingPhaseMeasurement = function () {
7456 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