jk-gan / redux-flipper

Redux middleware for React Native for Flipper
MIT License
159 stars 21 forks source link

Can't see state tree without a logged action #44

Open multiplegeorges opened 3 years ago

multiplegeorges commented 3 years ago

First, thank you for this plugin. It's very helpful!

One issue with the user interface: The state tree can only be seen when inspecting a logged action. If a user hits the Clear button, they must trigger a new action before seeing the current state tree.

It would be helpful to have a way to view the state tree all the time.

Thanks!

plwai commented 3 years ago

Thanks for the feedback!

After thinking for quite awhile, I think "Clear" should clear everything as the state tree is showing the selected action state tree result instead of current state tree.

I notice that the most frequent use case for "Clear" would be at the time of application reload. To cater this, I created PR #45 to clear the states automatically and show the initial state tree.

@jk-gan any opinion about this?