The default monitor for Redux DevTools with a tree view
by gaearonJavaScript
Last 12 weeks · 0 commits
3 of 6 standards met
I've had a few situations where it would be really convenient for me to get a copy of just the current state object either saved to a pretty-printed JSON file or copied to the clipboard. The existing download button is similar, but since it downloads actions and computed state, I have to shave a few more yaks to get a clean copy of the state object. The current best solution I have is to use react-devtools to select my `JSON.stringify($r.store.getState())` into the console. This works, but requires multiple unintuitive clicks, remembering or finding that code snippet, and then formatting the output. Since this is something I run into often, it would reduce a lot of friction to have a more streamlined solution, like a "Copy current state to Clipboard" button somewhere in the UI. Another user suggested being able to copy the contents of the log monitor panel just by clicking and dragging, which is another potential solution that would work for this use case. I'm more than happy to open a PR for this and implement the feature, but before I spend a lot of time on it, I just wanted to check whether or not this is a feature you'd be interested in merging, and if you have any thoughts about the design of the UI/UX for this feature.
Repository: gaearon/redux-devtools-log-monitor. Description: The default monitor for Redux DevTools with a tree view Stars: 308, Forks: 66. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.3.0 (8y ago). Open PRs: 2, open issues: 6. Last activity: 8y ago. Community health: 57%. Top contributors: gaearon, zalmoxisus, romanmatiasko, tomatau, anibali, calesce, colinmeinke, gpbl, khankuan, alexkuz and others.
Can we add ability to show state keys in alphabetical order?