Skip to content

Commit

Permalink
Tag MemoComponent with PerformedWork effectTag for DevTools Profiler (f…
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn authored Nov 7, 2018
1 parent be63473 commit 5afa1c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-reconciler/src/ReactFiberBeginWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ function updateMemoComponent(
);
}
}
// React DevTools reads this flag.
workInProgress.effectTag |= PerformedWork;
let newChild = createWorkInProgress(
currentChild,
nextProps,
Expand Down

0 comments on commit 5afa1c4

Please sign in to comment.