Clament John
08/02/2021, 12:06 PMGet all products --- Network ---\
Search products --- Network ------- List<Products> ---> data class Cart ---> Flow<List<Product>>
Filter products --- Network ---/
Cart flow
Load Cart from SQLite --- Room ------ Flow ---> Flow<List<Product>>
The List<Product>
read from SQLite will have the latest quantity, read using a flow. And I would like this quantity to be reflected to the List<Product>
used in the Storefront
.
Question
1. How to I transform the storefront flow to have the latest quantity in accordance with the product and quantity in the cart.