Actually, one thing that is working, maybe an answer is in the Connect screen:
Copy code
LaunchedEffect(connectionStatus) {
// screenStarted holds whether this screen is topmost or just peeking from behind a swipe
if (screenStarted && connectionStatus == FanControlService.FanConnectionStatus.CONNECTED) {
appState.navHostController.navigate(Screen.CONNECTED.route)
}
}