Skip to content

Commit

Permalink
[DevTools] Fix: highlight updates with memoized components
Browse files Browse the repository at this point in the history
  • Loading branch information
Selnapenek committed Aug 3, 2021
1 parent 4225133 commit 98d4145
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 98d4145

Please sign in to comment.