tappleby / redux-batched-subscribe

store enhancer for https://github.com/reactjs/redux which allows batching subscribe notifications.
MIT License
504 stars 32 forks source link

Is there a way to use subscribeImmediate with react-redux? #26

Closed mreishus closed 6 years ago

mreishus commented 6 years ago

I use react-redux and its normal bindings of creating a mapStateToProps, mapDispatchToProps, and using those to enhance my components by calling react-redux's connect function, which internally calls subscribe.

This library exposes a subscribeImmediate, but I'm not sure how to use it for a component since I'm using react-redux, which takes care of subscribing for me. I'm guessing there's not an easy way to do it, but opening this issue just to ask if there is one.

mreishus commented 6 years ago

I ended up changing the batching behavior on the action level as described in #24.