team-gryff / react-monocle

A developer tool to visualize a React application's component hierarchy.
MIT License
2.45k stars 78 forks source link

Support for Redux #107

Open mbchoa opened 8 years ago

mbchoa commented 8 years ago

Currently don't support state synchronization in applications using Redux.

Add support in future release

oakley808 commented 8 years ago

Does this mean monocle won't run at all on redux apps, or just won't show state properly?

mbchoa commented 8 years ago

Monocle specifically looks for setState method calls in the your bundle in order to pull state changes from your app and display them in the Monocle app.

With Redux, all components are essentially stateless functional components so setState method calls would not be necessary.

This poses a problem when displaying feedback from state changes since we rely on this information in order to update our component hierarchy tree when state changes are made.

aCandidMind commented 7 years ago

This feature would make Monocle usable to a lot more people, because a lot of apps are developed with redux. Is it feasible to hook into componentDidUpdate() similar to how whyDidYouUpdate did it and track that way or something like that?

jsindos commented 7 years ago

I want to use monocle to generate a static, stateless version of the tree graph of a Redux project. I was wondering if you had a very rough estimate of the difficulty of adding this feature? I can look at contributing.