AndroidDev, Android App Development, Android, Jetpack, Jetpack Compose.
effect API is the recommended way to execute suspend functions as an effect of anything happening out of the scope of composable and changes of Network connectivity is an example of those side-effects happening out of the scope of composable. Sources Monitor Connectivity Status callbackFlow