DEV Community

Discussion on: Messy Event Flows: Part 2 - What it should be

Collapse
eonist profile image
Eon

What about RX?

Collapse
barryosull profile image
Barry O Sullivan Author

Good suggestion. Reactive Extensions (RX) is a great way to implement your projectors, it makes it easy to build up the state required by your constraints.

Collapse
eonist profile image
Eon

But debugging RX can send you into back holes iv'e heard. Thoughts on this?

Thread Thread
barryosull profile image
Barry O Sullivan Author

We don't use RX to implement projectors, so I can't really answer this. I've used it in the past, so can I imagine it would get difficult. For projectors, a simple implementation of the observer pattern tendsto works well.

React reducers are pretty much projectors, so their implementation is a good place to see it in action.

redux.js.org/docs/basics/Reducers....