redux-action-replay-middleware

0.0.3 • Public • Published

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=Foo

Replay

Use replay=<id> as a qwuery parameter when loading your app to replay the actions recorded on that id

http://myapp?replay=Foo

If neither of them are present it does nothing.

Package Sidebar

Install

npm i redux-action-replay-middleware

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • danislu