Clament John
11/06/2021, 11:17 AMList<Message> in the UI
2. messages = mutableStateListOf<Message> in viewModel
3. messages depends on two actions getAllPaginated or search
4. In both cases we observe SQLite, but only one flow should be active at a single instant (user is either viewing all or is searching)
5. Flow is used at SQLite because new messages can come from the network
Questions:
1. How to switch between getAll and search flow
2. When a new search happens the old search flow should be cancelled and a new one should startClament John
11/06/2021, 11:19 AMgetAll and search when the user action changesClament John
11/06/2021, 11:24 AMAlbert Chang
11/06/2021, 3:04 PM