Skip to content

Commit

Permalink
DevTools Profiler: Fix "cannot read property 'memoizedState' of null" (
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Apr 7, 2020
1 parent e8ac48f commit 8edcd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/backend/renderer.js
Expand Up @@ -918,7 +918,7 @@ export function attach(
}

function didHooksChange(prev: any, next: any): boolean {
if (next == null) {
if (prev == null || next == null) {
return false;
}

Expand Down

0 comments on commit 8edcd03

Please sign in to comment.