0.0.3 • Published 9 years ago
redux-action-replay-middleware v0.0.3
Middleware for storing redux actions in localstorage and replaying them later. Usefull for QA reproducing bugs etc.
Howto
Use
...
import { createStore, applyMiddleware } from 'redux';
import createRecNReplayMiddleware from 'redux-action-replay-middleware';
const recNReplayMiddleware = createRecNReplayMiddleware();
const createStoreWithMiddleware = applyMiddleware(recNReplayMiddleware)(createStore);
...Record
Use record=<id> as a query parameter when loading your app to record all the actions.
http://myapp?record=FooReplay
Use replay=<id> as a qwuery parameter when loading your app to replay the actions recorded on that id
http://myapp?replay=FooIf neither of them are present it does nothing.