joshwcomeau/redux-vcr

Explore using Redux Devtools

Open

#1 opened on Sep 23, 2016

View on GitHub
 (0 comments) (3 reactions) (0 assignees)JavaScript (14 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (585 stars)
PR merge metrics
 (PR metrics pending)

Description

Right now, ReduxVCR is built from scratch. As the project comes along, though, it seems like a lot of the effort from the Redux Devtools project is being duplicated.

There are a few potential issues I see with integrating the two:

  • The behaviour is different in a subtle, complex way. In development, we want to load a cassette, which causes its actions to be queued and playable. We want to ignore any actions that we send along, though.

    For example, in my web audio synthesizer, it's fun to be able to "jam along" with yourself, by adding in your own Actions while the session runs. I get the sense, from looking at the redux devtools instrument source, that this would cause the original sequence of events to be invalidated.

  • The fact that cassette actions need to be captured and replayed in realtime (with speed modifiers) might be an issue.

  • Redux Devtools is not meant to be shipped to Production. This project's Capture and Persist modules need to be production-shipped.

Those issues may not actually be very troublesome, I'm just not super familiar with the Redux Devtools code. There are really good reasons for trying to make the switch, though.

If anyone would like to have a go at making Replay a Devtool Monitor, that would be fantastic :)

Contributor guide