Event List from Redux Dev Tools
This is too embarrassing to post anywhere else, but it’s useful-ish.
Do you want to export your list of events from Redux Dev Tools? Yeah, me too.
You can’t seem to do it in the tool.
SO wants you to stop and write freaking middleware.
Or do this and you can have that precious list in 30 seconds.
- Type
__REDUX_DEVTOOLS_EXTENSION__
into the console. - Double-click to open the source in VM.
- Pretty-print.
- Breakpoint :356.
- Go back to the tool and jump to an action. This should hit your breakpoint.
Object.keys(t.actionsById).forEach((id) =>
console.log(t["actionsById"][id].action.type))
Here’s a demo if you’re scared.