LazyColumn not loading in fragments

Viewed 29

When a fragment is launched, LazyColumn does not display information, and when switching to another fragment, it first adds elements to the screen (can be duplicated), then switches.

Column () {
            LazyColumn(modifier = Modifier.fillMaxSize()) {
                items(viewModel.chats) { item ->
                    Text(item.name)
                }
            }
        }
0 Answers
Related