Hey guys, I'm using TabBar in Compose and I want t...
# compose
l
Hey guys, I'm using TabBar in Compose and I want to reload just one of the tabs in the tab bar
Copy code
fun navigateToTab(tab: BottomBarItem) {
            selectedTab = tab

            tabBarNavController.navigate(route = "$root/${tab.route}") {
                //  Avoid multiple copies of the same destination when
                // reselecting the same item
                launchSingleTop = true
                // Restore state when reselecting a previously selected item
                restoreState = tab.route != "my-tab-to-reload"

                // Pop up to the start destination of the graph to
                // avoid building up a large stack of destinations
                // on the back stack as users select items
                popUpTo(tabBarNavController.graph.findStartDestination().id) {
                    saveState = true
                }
            }
        }
But it didn't work Can you help me to do this ?