diff --git a/packages/react-reconciler/src/ReactDebugFiberPerf.js b/packages/react-reconciler/src/ReactDebugFiberPerf.js index e4bb8053e3c1d..a23446f3cc48e 100644 --- a/packages/react-reconciler/src/ReactDebugFiberPerf.js +++ b/packages/react-reconciler/src/ReactDebugFiberPerf.js @@ -19,6 +19,8 @@ import { CallComponent, ReturnComponent, Fragment, + ContextProvider, + ContextConsumer, } from 'shared/ReactTypeOfWork'; type MeasurementPhase = @@ -170,6 +172,8 @@ const shouldIgnoreFiber = (fiber: Fiber): boolean => { case CallComponent: case ReturnComponent: case Fragment: + case ContextProvider: + case ContextConsumer: return true; default: return false;