From 57322a94c182225164fbc57b44b05fe9f817d783 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Wed, 7 Nov 2018 13:56:12 -0800 Subject: [PATCH] Tag MemoComponent with PerformedWork effectTag for DevTools Profiler (#14141) --- packages/react-reconciler/src/ReactFiberBeginWork.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-reconciler/src/ReactFiberBeginWork.js b/packages/react-reconciler/src/ReactFiberBeginWork.js index 4e7ab1171d8b4..7891394377f1f 100644 --- a/packages/react-reconciler/src/ReactFiberBeginWork.js +++ b/packages/react-reconciler/src/ReactFiberBeginWork.js @@ -283,6 +283,8 @@ function updateMemoComponent( ); } } + // React DevTools reads this flag. + workInProgress.effectTag |= PerformedWork; let newChild = createWorkInProgress( currentChild, nextProps,