@samitouri / QOS-React-2 / commits / 8edcd03b64

DevTools Profiler: Fix "cannot read property 'memoizedState' of null" (#18522)

Brian Vaughn committed Apr 7, 2020 at 10:30 UTC 8edcd03b6450ef1d6b78fdb14b8f75682ae0589e
1 file changed +1 -1
packages/react-devtools-shared/src/backend/renderer.js
+1 -1
@@ -918,7 +918,7 @@ export function attach(
918 }
919
920 function didHooksChange(prev: any, next: any): boolean {
921 - if (next == null) {
921 + if (prev == null || next == null) {
922 return false;
923 }
924