Should you be collecting `SharedFlow/PublishSubjec...
# compose
r
Should you be collecting
SharedFlow/PublishSubject
in composable? When we talk about uni-directional data flow, aren't we deviating from it when we start collecting the
Shared/Publish
in an effect-handler or uni-directional flow just talks about events flowing from composable - up in the tree.
l
I generally collect from a StateFlow (type of SharedFlow), but I don’t collect from a MutableStateFlow, which keeps unidirectional data flow. I call functions on my ComponentContext (from #decompose) to send events, and my SharedFlow sends state back down.