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 n8schloss committed Jan 31, 2019
1 parent b3a6304 commit 4d8b148
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 4d8b148

Please sign in to comment.