DEV Community

Discussion on: RxJS with React

Collapse
 
quickfingersdev profile image
quickfingers

This is really great! Do you prefer RxJS over redux?

Collapse
 
bigab profile image
Adam L Barrett

I do. Though I have used both together (redux-observable), the main issues I have with redux are:

  • If I've subscribed to the store (or slice of the store) why do I also have to dispatch an action that says "go get this data" as well
  • I often just want to respond to a state change, like "when this id changes, let me go fetch the details of that thing and display them" as opposed to needing to know what action changed the id and respond to that with more actions for the fetching the details

Hope that makes sense, I should probably write a blog post about it

Collapse
 
quickfingersdev profile image
quickfingers • Edited

Hi Adam, thank you for this very informative reply. I have been watching your youtube presentation. Do you any github example source on a real app? I just want to see it in action on a bigger and complex app.

Thread Thread
 
aksh0314 profile image
aksh0314

Yeah, that would be very helpful Adam if you have any example for complex app. Thanks