MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / shouldIgnoreFiber

Function shouldIgnoreFiber

code/new-context-api/public/app.js:6924–6941  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6922};
6923
6924var shouldIgnoreFiber = function (fiber) {
6925 // Host components should be skipped in the timeline.
6926 // We could check typeof fiber.type, but does this work with RN?
6927 switch (fiber.tag) {
6928 case HostRoot:
6929 case HostComponent:
6930 case HostText:
6931 case HostPortal:
6932 case CallComponent:
6933 case ReturnComponent:
6934 case Fragment:
6935 case ContextProvider:
6936 case ContextConsumer:
6937 return true;
6938 default:
6939 return false;
6940 }
6941};
6942
6943var clearPendingPhaseMeasurement = function () {
6944 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