Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8edcd03

Browse files
author
Brian Vaughn
authored
DevTools Profiler: Fix "cannot read property 'memoizedState' of null" (facebook#18522)
1 parent e8ac48f commit 8edcd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ export function attach(
918918
}
919919

920920
function didHooksChange(prev: any, next: any): boolean {
921-
if (next == null) {
921+
if (prev == null || next == null) {
922922
return false;
923923
}
924924

0 commit comments

Comments
 (0)