This doesn't sound like a compose concern. Compose can subscribe to all kinds of reactive data sources though, including flow (and I think RxJava?), so if whatever pub/sub you wanna use supports those, you should be fine
👍 1
And it's very easy to write custom integrations.
👍 1
g
Guy Bieber
10/16/2020, 8:05 PM
i guess mutablestateof and remember are kind of a pub and sub.
z
Zach Klippenstein (he/him) [MOD]
10/16/2020, 8:21 PM
Not sure what you mean exactly by pub/sub. Most of the examples I've seen seem to act like an event bus router with different busses for different topics. I guess you could say that's a special case of the observer pattern, and Compose's State is basically how it does the observer pattern.