diff --git a/packages/react-devtools-shared/src/backend/renderer.js b/packages/react-devtools-shared/src/backend/renderer.js index ee90dfee688ac..cc82fda74cdb1 100644 --- a/packages/react-devtools-shared/src/backend/renderer.js +++ b/packages/react-devtools-shared/src/backend/renderer.js @@ -2795,6 +2795,7 @@ export function attach( break; case ForwardRef: global.$r = { + hooks, props, type: type.render, }; @@ -2802,6 +2803,7 @@ export function attach( case MemoComponent: case SimpleMemoComponent: global.$r = { + hooks, props, type: elementType != null && elementType.type != null