Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.77 KB

README.MD

File metadata and controls

54 lines (39 loc) · 1.77 KB

Redux Subscribe Reselect

npm version Build Status Coverage Status Dependency Status devDependency Status

Subscribe to state changes returned from a reselect selector

install

npm install --save redux-subscribe-reselect

usage

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!'))

notes

this is really bare-bones, there is no error checking or anything fancy. play stupid games, win stupid prizes.

contributing

PRs and issues are welcome... Also, be good to one another. Thanks!

license

MIT