zalmoxisus / redux-devtools-extension

Redux DevTools extension.
MIT License
13.48k stars 1.01k forks source link

State tree collapses when switching between State and Diff #327

Open aspiers opened 7 years ago

aspiers commented 7 years ago

In the Inspector, when I'm looking at the State view, if I expand a few nested levels within my state tree and then change the view to Diff and back to State, the state tree gets automatically collapsed again :-( This is really inconvenient when working on the same subset of the state tree.

I'm not sure but I think this is a different bug to #286. Iif not, #286 needs reopening, because I am seeing this with 2.14.2. Thanks!

zalmoxisus commented 7 years ago

This is how Inspector Monitor works. When you switch to Diff tab, the State tab's component is unmounted. To support that, we'd have to persist the expanded nodes. In #286 there were an issue on updating the JSONTree component, which was fixed.

If you could implement that in Inspector Monitor, it would be much appreciated.