Questions tagged [jetpack-compose-navigation]
The jetpack-compose-navigation tag has no usage guidance.
257
questions
0
votes
0
answers
17
views
How to run a function when navController.popBackStack() is called in Jetpack Compose?
I have a list of "clients" which are presented using a lazy column on a screen. I am able to enter each client (navigate to another screen) and edit the information of this client, but when ...
0
votes
0
answers
39
views
Is it possible to replace the start destination in Jetpack Compose Navigation without losing the backstack?
I have a NavGraph setup so you can change the start destination while being on another screen entirely (e.g. A is the start destination - I navigate to C and change the start destination to B) - ...
1
vote
1
answer
61
views
Jetpack compose navigation: why I have wrong hierarchy of a destination?
Problem:
I have an issue with the hierarchy of my Compose Navigation. The version of compose-navigation I am using is: androidx.navigation:navigation-compose:2.7.7.
Background:
I am trying to ...
1
vote
0
answers
37
views
Jetpack Navigation Compose incorrect transition animation
When using NavHost, sometimes incorrect animations appear, but not when using AnimatedContent.
Navigation compose version: 2.8.0-alpha05
Compose ui version: 1.7.0-beta04
Kotlin version: 2.0.0
@...
0
votes
0
answers
54
views
findStartDestination() of navController.graph returns the default startRoute of started navigation graph of the NavHost in jetpack compose navigation
Main Nav Host
NavHost(
navController = appState.navController,
route = rootRoute,
startDestination = authGraphRoute,
) {
authGraph(appState)
editProfileListScreen(appState, ...
1
vote
0
answers
70
views
How to use Navigation Compose new features in Hilt Navigation Compose?
I just read that we can use type safety in Navigation Compose if we update to version 2.8.0. But how about Hilt Navigation Compose? I just upgraded to version 1.2.0 but I didn't find the new ...
2
votes
1
answer
99
views
Jetpack Compose popBackStack problems with animated navigation transitions
When using new Compose navigation that incorporates animations in NavHost by default, i encountered a few issues with navController.popBackStack(). (Edit 2: nav version 2.8.0-beta03)
2 main issues ...
0
votes
0
answers
35
views
How to get a query parameter value in a SavedStateHandle injected into a view model by a deeplink using compose navigation?
I'm trying to get the token value of the following link (query parameter) using navigation with jetpack compose: https://www.borarachar.com/groups/join?token=...
1
vote
1
answer
56
views
Display Bottom Navigation Only on Specific Composables in Jetpack Compose
What I want is that my bottom navigation to only be shown in specific Composables like home screen and settings screen. The problem is the bottom navigation is also shown in the login and sign-up ...
0
votes
0
answers
47
views
Jetpack Compose architecture with recursive screens using deep links and memory leaks
I have built an architecture based on Jetpack compose and I don't want to use Flows if possible. The data is in a tree structure; based on Requirements and Selections; which are rendered in a section-...
0
votes
0
answers
31
views
Update new navigation arguments to the composable view when the compose navigation action is set to restore previous state
The composable view is not getting updated with new arguments that are passed through deep link when the navigation action is launched as single-top and state is set to restore previously saved state.
...
2
votes
0
answers
33
views
How to view guides for previous versions of Jetpack Compose Navigation
I am trying to work on bringing my Android code up to standard with the guidance given here - Encapsulate your navigation code However, I don't have the toRoute method mentioned. I do some digging ...
2
votes
1
answer
260
views
IllegalStateException: no event down from INITIALIZED in component NavBackStackEntry(*)
Hey recently I had discovered this weird behaviour after updating gradle to use navigation-compose (for leveraging new APIs' for compose navigations) navigation-ui(old navigation using graphs)
Problem
...
1
vote
0
answers
52
views
How can I scope an object(not a ViewModel) to a compose navigation graph?
I have been struggling with this problem for a long time. It is finally time to ask StackOverflow. Let's say I have a compose navigation graph and I have a Logging object. I want the logging object to ...
2
votes
1
answer
100
views
Is there a way to have dialog destinations in back stack when navigating to hosted destination in Compose?
I have a project where I have a mix of hosted destinations (screens) and dialog destinations (dialogs) in Compose nav graph.
Sample nav graph:
NavHost(
navController = navController,
...