Redux-devtools-extension: Save actions for re-use in the 'dispatcher'

Created on 20 May 2016  路  4Comments  路  Source: zalmoxisus/redux-devtools-extension

It would be awesome to either have favorites, or even a history of manually dispatched actions that you could click to re-run since repetition is in the nature of using this tool.

enhancement help wanted

Most helpful comment

Implemented in v2.4.0.

All 4 comments

That would be really useful. It should be implemented on the Dispatcher Monitor, which we're using for that.

DispatchMonitor does a have a feature that could address this pain. You can pass it an array (or object) of action creators, and it will then let you select from that list through the tool. So you could, for example, give it the list of your existing action creators. You'll get a nice form to fill in for all of your action creators. I've tested this with redux-devtools directly and it works well.

However, I haven't figured out a way to pass an argument to Dispatcher Monitor when using redux-devtools-extension. Is that possible?

cc @YoruNoHikage

@jrullmann, thanks for the details. I'm aware of this functionality, but it's not that easy to implement here, as the monitors are decoupled from the application. Technically, we should serialize those functions and send them to the monitor on initialization. If someone wants to implement that here, it would be very welcome.

Though, the current proposal for extending the Dispatcher Monitor to save the dispatched actions and replay them like in a terminal would be useful as well.

Implemented in v2.4.0.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sthiago picture sthiago  路  4Comments

jhen0409 picture jhen0409  路  3Comments

zalmoxisus picture zalmoxisus  路  5Comments

pooltoymae picture pooltoymae  路  3Comments

MrSkinny picture MrSkinny  路  4Comments