Skip to content

Commit b54f36f

Browse files
authored
[DevTools] Fix: highlight updates with memoized components (#22008)
1 parent 3a1dc3e commit b54f36f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-devtools-shared/src/backend/renderer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2179,7 +2179,9 @@ export function attach(
21792179
if (
21802180
elementType === ElementTypeFunction ||
21812181
elementType === ElementTypeClass ||
2182-
elementType === ElementTypeContext
2182+
elementType === ElementTypeContext ||
2183+
elementType === ElementTypeMemo ||
2184+
elementType === ElementTypeForwardRef
21832185
) {
21842186
// Otherwise if this is a traced ancestor, flag for the nearest host descendant(s).
21852187
traceNearestHostComponentUpdate = didFiberRender(

0 commit comments

Comments
 (0)