react-monocle icon indicating copy to clipboard operation
react-monocle copied to clipboard

Support for Redux

Open mbchoa opened this issue 9 years ago • 4 comments

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

Add support in future release

mbchoa avatar Jul 21 '16 18:07 mbchoa

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

oakley808 avatar Aug 04 '16 19:08 oakley808

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.

mbchoa avatar Aug 05 '16 01:08 mbchoa

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?

aCandidMind avatar Jan 13 '17 13:01 aCandidMind

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.

jsindos avatar Nov 01 '17 15:11 jsindos