google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.43k stars 598 forks source link

[Navigation Animation] Couldn't popup navigation to root route when updated to v0.29.2-rc #1545

Closed javacl closed 1 year ago

javacl commented 1 year ago
AnimatedNavHost(
       navController = navController,
       startDestination = NavigationRoutes.Splash.route,
       route = NavigationRoutes.Root.route,
       modifier = Modifier.padding(innerPadding),
       enterTransition = { fadeIn(animationSpec = tween(500)) },
       exitTransition = { fadeOut(animationSpec = tween(500)) }
)

I set root route for navhost.

when navigate to multiple page need popup all pages. then is use this code for it

navigate(NavigationRoutes.Home.route) {
    popUpTo(NavigationRoutes.Root.route) { inclusive = true }
}

This code worked correctly in previous versions, but since I updated to version v0.29.2-rc, it no longer works.

I think the bug is from navigation material. When I tested navigation animation, it was correct.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.