@samitouri / QOS-React-2 / commits / b54f36f2b6

[DevTools] Fix: highlight updates with memoized components (#22008)

Vyacheslav 'SLEL' Solomin committed Aug 3, 2021 at 18:50 UTC b54f36f2b6eba4ae722bea56d4081a920fc9ad74
1 file changed +3 -1
packages/react-devtools-shared/src/backend/renderer.js
+3 -1
@@ -2179,7 +2179,9 @@ export function attach(
2179 if (
2180 elementType === ElementTypeFunction ||
2181 elementType === ElementTypeClass ||
2182 - elementType === ElementTypeContext
2182 + elementType === ElementTypeContext ||
2183 + elementType === ElementTypeMemo ||
2184 + elementType === ElementTypeForwardRef
2185 ) {
2186 // Otherwise if this is a traced ancestor, flag for the nearest host descendant(s).
2187 traceNearestHostComponentUpdate = didFiberRender(