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
Navigation Compose's
NavHost
(and any other Compose related Navigator), must all use the same pattern of:It would be nice if we could extract that out into a reusable container, so that any Navigator could write:
Where a
fun NavBackStackEntry.compositionLocalProvider(content: @Composable () -> Unit)
would encapsulate all of the details for you.I'm not particularly tied to the name / use of an extension, but I like the reuse of
CompositionLocalProvider
in a way that doesn't add an overload in a different package to the global namespace.