react-waterfall-redux-devtools-middleware
An integration between react-waterfall and redux-devtools-extension for action monitoring and time travel
Example
const store = initialState: count: 0 actions: count: count + 1 const Provider connect = let <> count <button onClick=actionsincrement>+</button> </> Count = Count const App = <Provider> <Count /> </Provider>
Using the middleware
yarn add react-waterfall-redux-devtools-middleware
You create the middleware by:
...const ... =
- You can ommit the
options
argument and get the defaults (i.e.reduxDevTools()
).
Options
Option | Type | Description | Default value |
---|---|---|---|
instanceId | Number | The instance of the store, needs to be different if you used initStore several times | 1 |
maxAge | Number (>1) | maximum allowed actions to be stored in the history tree | 50 |