indexiatech / re-notif

Redux & React based Notifications center.
http://indexiatech.github.io/re-notif
BSD 3-Clause "New" or "Revised" License
148 stars 45 forks source link

Add Custom State Selector #5

Closed hsrobflavorus closed 8 years ago

hsrobflavorus commented 8 years ago

Currently, this library assumes that you'll have the notif reducer mounted at notif (or you'll have some kind of function like state.get('notif'), which I am not sure is useful). This update uses ownProps to allow you to specify a custom stateSelector function on the <Notifs /> props. Example: <Notifs stateSelector={ (state) => state.somewhere.notif } />