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 } />
Currently, this library assumes that you'll have the notif reducer mounted at
notif
(or you'll have some kind of function likestate.get('notif')
, which I am not sure is useful). This update usesownProps
to allow you to specify a customstateSelector
function on the<Notifs />
props. Example:<Notifs stateSelector={ (state) => state.somewhere.notif } />