diff --git a/packages/react-devtools-shared/src/backend/renderer.js b/packages/react-devtools-shared/src/backend/renderer.js index 17e5930f2977a..0bf109d4268f8 100644 --- a/packages/react-devtools-shared/src/backend/renderer.js +++ b/packages/react-devtools-shared/src/backend/renderer.js @@ -918,7 +918,7 @@ export function attach( } function didHooksChange(prev: any, next: any): boolean { - if (next == null) { + if (prev == null || next == null) { return false; }