Jeisson Sáchica
11/20/2020, 10:53 PMJeisson Sáchica
11/20/2020, 10:56 PMNavHost(navController = navController, startDestination = "chat") {
// Other routes
composable("chat") {
val chatVm: ChatViewModel by viewModels()
chatVm.loadMessages()
val msgs by chatVm.messages.observeAsState()
ChatScreen(messages = msgs)
}
}
Joseph D
11/20/2020, 11:02 PMonActive
. Thanks a lot.