Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Component used: navigation-compose Version used: 2.8.1 Devices/Android versions reproduced on:
We have a nav graph with multiple routes. Each destination is represented by a serializable data object (based on recent type safety updates). While this works, the boiler plate setup code has to be repeated for every new screen.
It would be nice if we could just configure new destination without having to repeat the nav graph setup code.
However, we can't loop through this
composeScreens
data structure in nav graph as the destination is compile time type specification. It would be nice to support a version of composable() that takes Any as a parameter as well. If not, is there any way to avoid this repetitive code?