redux-log

January 19, 2016 ยท View on GitHub

Build status Git tag NPM version Code style

Simple log of redux actions, good for testing.

Installation

$ npm install redux-log

Usage

import reduxLog from 'redux-log'
import flow, {flo} from 'redux-flo'
import bind from '@f/bind-middleware'

var log = []
var io = bind([reduxLog(log)])

io({type: 'FETCH'})
log // => [{type: 'FETCH'}]

API

reduxLog(log)

  • log - an array to store the actions in

Returns: redux style middleware

License

MIT