https://kotlinlang.org logo
#feed
Title
# feed
c

CLOVIS

10/09/2023, 7:53 PM
We are releasing an experimental library to use
LazyRow
and
LazyColumn
in Compose HTML:
Copy code
@Composable
fun ShowUsers(users: List<UserId>) {
    LazyColumn {
        items(users) { userId ->
            var user by remember { mutableStateOf<User?>(null) }

            LaunchedEffect(userId) {
                user = requestUser(userId)
            }

            user?.also { Show(it) }
        }
    }
}
If you're interested, you can read more in our channel.
🎉 2
👍 3
👍🏾 1
2 Views