redux-subscribe-reselect
v2.0.1
Published
[![npm version][npm-badge]][npm-url] [![Build Status][travis-badge]][travis-url] [![Coverage Status][coveralls-badge]][coveralls-url] [![Dependency Status][dependency-badge]][dependency-url] [![devDependency Status][devDependency-badge]][devDependency-url
Downloads
32
Maintainers
Readme
Redux Subscribe Reselect
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