mirror of
https://github.com/ouchadam/small-talk.git
synced 2025-02-01 20:16:44 +01:00
using single instance of the clock to avoid recomposition lookups
This commit is contained in:
parent
ea2a960a3d
commit
cd0b3f567b
@ -115,13 +115,15 @@ private fun DirectoryViewModel.ObserveEvents(listState: LazyListState, toolbarPo
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
val clock = Clock.systemUTC()
|
||||
|
||||
@Composable
|
||||
private fun Content(listState: LazyListState, state: Content) {
|
||||
val context = LocalContext.current
|
||||
val navigateToRoom = { roomId: RoomId ->
|
||||
context.startActivity(MessengerActivity.newInstance(context, roomId))
|
||||
}
|
||||
val clock = Clock.systemUTC()
|
||||
val scope = rememberCoroutineScope()
|
||||
|
||||
LaunchedEffect(key1 = state.overviewState) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user