Subscribe to state changes returned from a reselect selector
npm install --save redux-subscribe-reselect
refer to ./test/fixtures/redux.js for context
import {createStore} from 'redux'
import subscribe from 'redux-subscribe-reselect'
import reducer, {addWidget, getWidgets} from './redux'
const store = createStore(reducer)
subscribe(store, getWidgets, data => assert.equal(data.name, 'test!'))
store.dispatch(addWidget('test!'))
this is really bare-bones, there is no error checking or anything fancy. play stupid games, win stupid prizes.
PRs and issues are welcome... Also, be good to one another. Thanks!
MIT