Understanding Side Effects in Jetpack Compose
1. LaunchedEffect LaunchedEffect is used to run suspend functions within a composable's lifecycle. It starts a coroutine when the composable enters the composition and cancels it when the composable is removed or when its key changes. This is ideal for triggering UI updates or background tasks that...