Skip to content

Instantly share code, notes, and snippets.

@5AbhishekSaxena
Created December 27, 2022 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5AbhishekSaxena/f8eb75386edfa7921f66431855c553e0 to your computer and use it in GitHub Desktop.
Save 5AbhishekSaxena/f8eb75386edfa7921f66431855c553e0 to your computer and use it in GitHub Desktop.
@Composable
fun StudentListScreen(
viewModel: StudentsViewModel = hiltViewModel()
) {
val students by viewModel.students.collectAsState()
StudentListContent(students = students)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment