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

Function shouldIgnoreFiber

code/styling/public/app.js:7563–7580  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

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