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

Function shouldIgnoreFiber

code/controlled-uncontrolled/public/app.js:6887–6904  ·  view source on GitHub ↗
(fiber)

Source from the content-addressed store, hash-verified

6885};
6886
6887var shouldIgnoreFiber = function (fiber) {
6888 // Host components should be skipped in the timeline.
6889 // We could check typeof fiber.type, but does this work with RN?
6890 switch (fiber.tag) {
6891 case HostRoot:
6892 case HostComponent:
6893 case HostText:
6894 case HostPortal:
6895 case CallComponent:
6896 case ReturnComponent:
6897 case Fragment:
6898 case ContextProvider:
6899 case ContextConsumer:
6900 return true;
6901 default:
6902 return false;
6903 }
6904};
6905
6906var clearPendingPhaseMeasurement = function () {
6907 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