Tgo1014
01/25/2023, 12:00 PMA
that will always be there and the flow B
needs to be started with a id param to observe the database for the specific id, but there may be cases where it will never be init. How can I do this?C
that start with an empty value and combines with A
, then if I ever subscribe to B
I collect and emit the values to C
Stylianos Gakis
01/31/2023, 11:20 AM.onStart { emit(...) }
? So you first emit something of your liking, and then it will continue emitting more once combine gets new values. Could that work?Tgo1014
01/31/2023, 11:30 AMonStart
would be just to emit a init value? If that's the case I'm just setting it when I start the flow at the momentStylianos Gakis
01/31/2023, 11:36 AMTgo1014
01/31/2023, 12:16 PMB
and some other occasions I do not need. So I implemented something similar to what you said, I've a third flow (C
) and depending on the case I emit to it, otherwise it's just blank and it works fine 🙂Chris Fillmore
02/21/2023, 2:50 AMflatMapLatest
is what you need here? Sorry, your description is not totally clear; perhaps some code could help.