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 e69ca31 commit 204b619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/backend/renderer.js
Original file line number Diff line number Diff line change
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 204b619

Please sign in to comment.