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

Function shouldIgnoreFiber

code/communication/public/app.js:7598–7615  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

7596};
7597
7598var shouldIgnoreFiber = function (fiber) {
7599 // Host components should be skipped in the timeline.
7600 // We could check typeof fiber.type, but does this work with RN?
7601 switch (fiber.tag) {
7602 case HostRoot:
7603 case HostComponent:
7604 case HostText:
7605 case HostPortal:
7606 case CallComponent:
7607 case ReturnComponent:
7608 case Fragment:
7609 case ContextProvider:
7610 case ContextConsumer:
7611 return true;
7612 default:
7613 return false;
7614 }
7615};
7616
7617var clearPendingPhaseMeasurement = function () {
7618 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