Skip to content

Instantly share code, notes, and snippets.

View agugliotta's full-sized avatar

Agustín Gugliotta agugliotta

  • Intive
  • Argentina
View GitHub Profile
@Composable //Don't
fun NoteList(notes: List<Note>) {
LazyColumn {
items(notes) { note ->
//...
}
}
}
@Composable //Do instead
@Composable
fun BookingList() {
var bookings by remember {
mutableStateOf<List<Bookings>>(emptyList)
}
LaunchedEffect(true) {
bookings = loadBookings()
}