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

Function shouldIgnoreFiber

code/higher-order-components/public/app.js:7557–7574  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7555};
7556
7557var shouldIgnoreFiber = function (fiber) {
7558 // Host components should be skipped in the timeline.
7559 // We could check typeof fiber.type, but does this work with RN?
7560 switch (fiber.tag) {
7561 case HostRoot:
7562 case HostComponent:
7563 case HostText:
7564 case HostPortal:
7565 case CallComponent:
7566 case ReturnComponent:
7567 case Fragment:
7568 case ContextProvider:
7569 case ContextConsumer:
7570 return true;
7571 default:
7572 return false;
7573 }
7574};
7575
7576var clearPendingPhaseMeasurement = function () {
7577 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