Stylianos Gakis
11/21/2022, 1:13 PMStylianos Gakis
11/21/2022, 1:13 PMNavController.createGraph()
with the information that comes from the backend for the entire flow.
From my understanding there’s not much we can do here in terms of process death recreation, so I’m looking for a way to potentially opt out from it, since we hit this error, and do it ourselves instead, by storing the previous information in persistent storage, and doing something with it, not sure tbh still thinking about it.
Does this feel like it has a solution, or does anyone have any idea about how to approach this?Colton Idle
11/21/2022, 1:34 PMwe don’t even have an initial graph which we can inform the navController🤯 Just out of curisotiy. whats the use case/ business req that prevents you from having an initial graph? i think compose-nav is fairly dependent on having thaat initial graph so maybe thaat navigation library might not be the right tool here.
Stylianos Gakis
11/21/2022, 1:35 PMColton Idle
11/21/2022, 1:57 PMStylianos Gakis
11/21/2022, 2:24 PMColton Idle
11/21/2022, 3:07 PMColton Idle
11/21/2022, 3:07 PMColton Idle
11/21/2022, 3:08 PMStylianos Gakis
11/21/2022, 3:23 PM.navigate()
to the same destination again, building the backstack like that, or do you do the “inside the destination” parts as some other custom solution?Colton Idle
11/21/2022, 3:50 PMStylianos Gakis
11/21/2022, 3:53 PMsteelahhh
11/22/2022, 4:55 PMStylianos Gakis
11/22/2022, 5:05 PM.saveState()
and .restoreState(bundle)
myself, just after I’ve fetched the routes from the backend, populating the graph again, and then calling restoreState. It was an interesting thing to make work, and I don’t love it but in our special case where I don’t have the graph ready there for me at startup, while I do need the NavHostController state to be restored, and for it to be restored if the graph isn’t there yet then it crashes since it can’t find the routes that it’s trying to restore 😂
Tbh I might be missing something or doing smth wrong or whatever, but it is what it is.
Appyx or any more “free-form” nav library may be the next thing I try if things go bad 😄 How has your experience with it been? How about process death handling with it, which was the reason I had all these issues in this case.steelahhh
11/22/2022, 6:20 PMPablichjenkov
11/22/2022, 10:35 PMStylianos Gakis
11/23/2022, 12:50 PM