So now that we've figured out how to import an array of actions and play them back, I now want to be able to take several action arrays and build a static "replay" application. Basically, we should be able to select a scene from a list, and then scrub through them with a slider (very useful for legal review of loan applications here at Affirm.com ;)
I've already built a little prototype:

But ideally I could reuse some code from this devtool and contribute back. I'm just not sure how. I don't want to have to install the redux dev tools in order to scrub around. I'd like everything to be packages up together. Any thoughts on how I can do this?
Recap:
- how can I embed the devtool directly in the application rather than using the chrome extension?
- I want to configure the devtool to be in replay mode with a set of scenes. That means the slider should be out, all actions should be blocked, there should be a dropdown/selection list to choose the scene you want to replay, and then the typical options for reviewing actions, states, diffs, etc. I'm imagining something like this:
import devtool from 'devtool'
store = createStore(
reducer,
devtool({mode: 'replay', scenes: {'name of scene': ['list', 'of', 'actions']}),
applyMiddleware(...middlewares),
)
So now that we've figured out how to import an array of actions and play them back, I now want to be able to take several action arrays and build a static "replay" application. Basically, we should be able to select a scene from a list, and then scrub through them with a slider (very useful for legal review of loan applications here at Affirm.com ;)
I've already built a little prototype:
But ideally I could reuse some code from this devtool and contribute back. I'm just not sure how. I don't want to have to install the redux dev tools in order to scrub around. I'd like everything to be packages up together. Any thoughts on how I can do this?
Recap: