redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

Idea: "Log" button for states/actions

Open gaearon opened this issue 11 years ago • 6 comments

No matter how good UI for object treeview can be, I doubt it'll beat the native UI (and REPL!) What if we just add a tiny "log" button to every state and action in devtools? Then you can always dump it to the console when you feel like exploring it in detail.

gaearon avatar Aug 06 '15 17:08 gaearon

@gaearon I guess so, and it is much simpler to do=)

sergey-lapin avatar Aug 06 '15 17:08 sergey-lapin

I mentioned something similar to that idea in the discussion of #39. Copy to clipboard would be very useful to play with state in the console, as well as if you can paste the cumulative state/actions back into devTools (perhaps from a QA tester's debug session).

calesce avatar Aug 06 '15 17:08 calesce

@calesce I used ReactZeroClipboard for copy to clipboard here. https://github.com/lapanoid/redux-devtools-gentest-plugin/blob/master/src/components/TestMonitor.js it is damn simple.

sergey-lapin avatar Aug 06 '15 17:08 sergey-lapin

Very cool! I hadn't seen that. No excuse not to write tests now :smiley:

calesce avatar Aug 06 '15 17:08 calesce

@calesce thanks, there is a room for improvement)

sergey-lapin avatar Aug 06 '15 17:08 sergey-lapin

Things like "log" button are part of this long-term UI overhaul: #74. Import/Export for current state is tracked in #118.

gaearon avatar Sep 27 '15 18:09 gaearon