Skip to content

Commit

Permalink
Ignored fiber tags which shows unknow in performance tabs (#12250)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaynikam authored and gaearon committed Feb 19, 2018
1 parent e68c016 commit 48ffbf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-reconciler/src/ReactDebugFiberPerf.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import {
CallComponent,
ReturnComponent,
Fragment,
ContextProvider,
ContextConsumer,
} from 'shared/ReactTypeOfWork';

type MeasurementPhase =
Expand Down Expand Up @@ -170,6 +172,8 @@ const shouldIgnoreFiber = (fiber: Fiber): boolean => {
case CallComponent:
case ReturnComponent:
case Fragment:
case ContextProvider:
case ContextConsumer:
return true;
default:
return false;
Expand Down

0 comments on commit 48ffbf0

Please sign in to comment.