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 2, 2021
1 parent 4225133 commit 668ef9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 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,8 @@ export function attach(
if (
elementType === ElementTypeFunction ||
elementType === ElementTypeClass ||
elementType === ElementTypeContext
elementType === ElementTypeContext ||
elementType === ElementTypeMemo
) {
// Otherwise if this is a traced ancestor, flag for the nearest host descendant(s).
traceNearestHostComponentUpdate = didFiberRender(
Expand Down

0 comments on commit 668ef9a

Please sign in to comment.