Garan Jenkin
11/08/2021, 2:43 PMLaunchedEffect
that sits outside of the NavHost
. You can see this here: https://github.com/garanj/wearwind/blob/main/app/src/main/java/com/garan/wearwind/FanActivity.kt#L115 So when the watch successfully connects to the fan, the screen transitions to the Connected screen, but it avoids the situation where when the user swipes back from the Connected screen they may hit the Connect screen but bounce back to the Connected screen as the fan hasn't disconnected yet... but is this a bad idea to have this navigation logic here? I've been trying to have it within each screen but with no success yet.John Nichol
11/08/2021, 3:30 PMGaran Jenkin
11/08/2021, 4:11 PMyschimke
11/08/2021, 4:53 PMJohn Nichol
11/09/2021, 6:35 PMGaran Jenkin
11/09/2021, 6:58 PM