Marko Novaković
06/22/2024, 1:49 PMval posts by snapshotFlow { selectedFeed }
.filterNotNull()
.flatMapLatest { observePostsUseCase(feedId = it.id) }
what happens is that snapshotFlow
emits same item 6, 7 times, even if I put .distinctUntilChanged
into the chain.
should snapshotFlow
emit only when selectedFeed
changes?
I thought maybe my feed class equals
isn’t right but it works properly.Albert Chang
06/22/2024, 2:19 PMMarko Novaković
06/22/2024, 3:39 PM