From 98d4145aa02b8bc01e528e0758912a6999ae3c60 Mon Sep 17 00:00:00 2001 From: Vyacheslav 'SLEL' Solomin Date: Tue, 3 Aug 2021 18:38:53 +0300 Subject: [PATCH] [DevTools] Fix: highlight updates with memoized components --- packages/react-devtools-shared/src/backend/renderer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-devtools-shared/src/backend/renderer.js b/packages/react-devtools-shared/src/backend/renderer.js index ee772fda860a0..e1772fdf47cbc 100644 --- a/packages/react-devtools-shared/src/backend/renderer.js +++ b/packages/react-devtools-shared/src/backend/renderer.js @@ -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(