Post #3827009
2026-07-14 22:58 UTC
Q for Android/Kotlin devs: The Navigation 3 Code Recipes github has two interesting recipes for me: "Saveable back stack" https://github.com/android/nav3-recipes/blob/main/app/src/main/java/com/example/nav3recipes/basicsaveable and "Hilt - Modularized navigation code" https://github.com/android/nav3-recipes/blob/main/app/src/main/java/com/example/nav3recipes/modular/hilt
I need a combo of the 2: modularized navigation with Hilt, plus saveable back stack, but I can for the life of me not understand how to use `rememberNavBackStack()` in the Hilt scenario, where the `navigator` class is defined in a module.
Any ideas?
#BuildInPublic #Android #Kotlin
Replies (0)
No replies.