Clament John
11/11/2021, 7:36 AMMutableStateFlow<List<Item>> does not trigger flow emission. Add / remove of an item triggers an emission.
I'm listening to this flow (cartItems) with a transform which is never triggered when I modify the quantity of a product within the list. But the value does change in the list (Can confirm because if I click + n times and then - n times recomposition happens.
Question
How should I update an item MutableStateFlow<List<Item>> such that emission is triggered and transform is triggered?Sri
11/11/2021, 7:47 AMClament John
11/11/2021, 7:48 AMstreetsofboston
11/11/2021, 8:14 AMmcpiroman
11/11/2021, 9:41 AMZach Klippenstein (he/him) [MOD]
11/11/2021, 2:52 PM