fix deep link

This commit is contained in:
2026-08-08 08:52:18 +03:00
parent 64ee936aa6
commit 023395e09d
9 changed files with 74 additions and 71 deletions
@@ -7,8 +7,6 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeDrawing
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
@@ -86,13 +84,6 @@ fun mainInternal() {
r.onFinish.collect { r.navReplace(Route.Loading()) }
}
val isLoggedIn by r.isLoggedIn.collectAsState(null)
LaunchedEffect(isLoggedIn) {
if (isLoggedIn == false) {
r.navReplace(Route.Loading())
}
}
Box(Modifier.fillMaxSize().padding(WindowInsets.safeDrawing.asPaddingValues())) {
Nav(r)
}