Skip to content

Commit

Permalink
[DevTools] Fix: highlight updates with memoized components (facebook#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Selnapenek authored and zhengjitf committed Apr 15, 2022
1 parent aedc679 commit 2c17149
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-devtools-shared/src/backend/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2179,7 +2179,9 @@ export function attach(
if (
elementType === ElementTypeFunction ||
elementType === ElementTypeClass ||
elementType === ElementTypeContext
elementType === ElementTypeContext ||
elementType === ElementTypeMemo ||
elementType === ElementTypeForwardRef
) {
// Otherwise if this is a traced ancestor, flag for the nearest host descendant(s).
traceNearestHostComponentUpdate = didFiberRender(
Expand Down

0 comments on commit 2c17149

Please sign in to comment.