Skip to content

Commit

Permalink
[DevTools] Fix: highlight updates with memoized components (#22008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Selnapenek authored Aug 3, 2021
1 parent 3a1dc3e commit b54f36f
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 b54f36f

Please sign in to comment.