redux-subscribe-reselect
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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

Package Sidebar

Install

npm i redux-subscribe-reselect

Weekly Downloads

8

Version

2.0.1

License

MIT

Unpacked Size

5.07 kB

Total Files

5

Last publish

Collaborators

  • tswaters