Skip to content

Commit

Permalink
-Dispose Tab Impl
Browse files Browse the repository at this point in the history
  • Loading branch information
KhubaibKhan4 committed Oct 20, 2024
1 parent 0848576 commit 15519db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion composeApp/src/commonMain/kotlin/org/company/app/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import cafe.adriel.voyager.navigator.tab.Tab
import cafe.adriel.voyager.navigator.tab.TabNavigator
import io.ktor.client.HttpClientConfig
import io.ktor.util.Platform
import kotlinx.serialization.descriptors.PrimitiveKind
import org.company.app.di.appModule
import org.company.app.presentation.ui.navigation.rails.items.NavigationItem
import org.company.app.presentation.ui.navigation.rails.navbar.NavigationSideBar
Expand Down Expand Up @@ -108,7 +109,10 @@ fun AppContent() {
mutableStateOf(0)
}

TabNavigator(HomeTab) { tabNavigator ->
TabNavigator(
tab = HomeTab,
disposeNestedNavigators = true
) { tabNavigator ->
Scaffold(bottomBar = {
if (!showNavigationRail) {
NavigationBar(
Expand Down

0 comments on commit 15519db

Please sign in to comment.