### Describe what you were doing when the bug occurred:
1. I did profiling on a list, that gets updated on each pagination api call.
2. Once the profiling was done, I moved around in the Profiler to view the Flamegraph
3. Moving to second capture, the Profiler crashed.


**DevTools version**: 4.6.0-6cceaeb67

```
Component stack: in ec
    in div
    in div
    in div
    in So
    in Unknown
    in n
    in Unknown
    in div
    in div
    in rl
    in Ze
    in fn
    in Ga
    in _s
```
return null;
  }
  function areHookInputsEqual(
    nextDeps: Array<mixed>,
    prevDeps: Array<mixed> | null,
  ) {
    if (prevDeps === null) {
      return false;
    }
    for (let i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
      if (is(nextDeps[i], prevDeps[i])) {
        continue;
      }
      return false;
    }
    return true;
  }
  function isEffect(memoizedState) {
    return (
      memoizedState !== null &&
      typeof memoizedState === 'object' &&
      memoizedState.hasOwnProperty('tag') &&
      memoizedState.hasOwnProperty('create') &&
      memoizedState.hasOwnProperty('destroy') &&
      memoizedState.hasOwnProperty('deps') &&
      (memoizedState.deps === null || isArray(memoizedState.deps)) &&
      memoizedState.hasOwnProperty('next')
    );
  }
  function didHookChange(prev: any, next: any): boolean {