Skip to content

Commit 48ffbf0

Browse files
abhaynikamgaearon
authored andcommitted
Ignored fiber tags which shows unknow in performance tabs (#12250)
1 parent e68c016 commit 48ffbf0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-reconciler/src/ReactDebugFiberPerf.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import {
1919
CallComponent,
2020
ReturnComponent,
2121
Fragment,
22+
ContextProvider,
23+
ContextConsumer,
2224
} from 'shared/ReactTypeOfWork';
2325

2426
type MeasurementPhase =
@@ -170,6 +172,8 @@ const shouldIgnoreFiber = (fiber: Fiber): boolean => {
170172
case CallComponent:
171173
case ReturnComponent:
172174
case Fragment:
175+
case ContextProvider:
176+
case ContextConsumer:
173177
return true;
174178
default:
175179
return false;

0 commit comments

Comments
 (0)