Skip to content

Subscribe to state changes returned from a reselect selector

License

Notifications You must be signed in to change notification settings

tswaters/redux-subscribe-reselect

Repository files navigation

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

About

Subscribe to state changes returned from a reselect selector

Resources

License

Stars

Watchers

Forks

Packages

No packages published