dillon1000/react

Commit

Improve Flow coverage by reducing typecasts through `any`

There are many unnecessary typecasts through `any` which
break the Flow of types across the program.

It's more bulletproof to avoid lying to ourselves about types.

Also fixed sketchy null check where zero ID would be skipped:
```diff
-  } else if (selectedElementID) {
+  } else if (selectedElementID !== null) {
```
Browse files
Changed paths7 files
First-parent comparison
M src/devtools/store.js ModifiedM src/devtools/views/Profiler/ChartNode.js ModifiedM src/devtools/views/Profiler/CommitFlamegraphListItem.js ModifiedM src/devtools/views/Profiler/FilterModal.js ModifiedM src/devtools/views/Profiler/ProfilerContext.js ModifiedM src/devtools/views/Profiler/utils.js ModifiedM src/devtools/views/hooks.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…