bvaughn/react-devtools-experimental

Selection doesn't get preserved first time after switching the filter

gaearon opened this issue · 3 comments

  1. Change filters
  2. Select any component
  3. Reload after a second

Expected: component selection is restored.
Actual: it only gets persisted after another reload.

Ah, the problem is that unmounting and re-mounting the roots cause our pseudo key counter to be incremented.

Fixed via 4bf3ac1. Not sure how best to capture in a test, yet.

Ah makes sense.