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 and jetoneza committed Jan 23, 2019
1 parent 4327b2d commit 57322a9
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 57322a9

Please sign in to comment.