Skip to content

Instantly share code, notes, and snippets.

@Composable
fun CalendarRoute(
viewModel: CalendarViewModel = CalendarViewModel(),
modifier: Modifier
) {
val state by viewModel.state.collectAsState()
// One-shot load tied to composition lifecycle
LaunchedEffect(Unit) {
viewModel.handleEvent(CalendarEvent.OnScreenShown)