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

Function shouldIgnoreFiber

code/third-party/public/app.js:6796–6813  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6794};
6795
6796var shouldIgnoreFiber = function (fiber) {
6797 // Host components should be skipped in the timeline.
6798 // We could check typeof fiber.type, but does this work with RN?
6799 switch (fiber.tag) {
6800 case HostRoot:
6801 case HostComponent:
6802 case HostText:
6803 case HostPortal:
6804 case CallComponent:
6805 case ReturnComponent:
6806 case Fragment:
6807 case ContextProvider:
6808 case ContextConsumer:
6809 return true;
6810 default:
6811 return false;
6812 }
6813};
6814
6815var clearPendingPhaseMeasurement = function () {
6816 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