reactormonk
08/26/2023, 9:43 AMMutableStateFlow
, and I want to create a third MutableStateFlow
which depends on the other two states, so when one of them changes, the final one should update. I assumed a select
would do the trick here, or are there other ways?xoangon
08/26/2023, 10:07 AMFlow::combine
is used to combine 2 flows by taking the latest change on any of them. It looks like it may be what you're looking for