Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
Oh I forgot to mention that I thought it might be connected to this issue:
ap...@google.com <ap...@google.com> #3
Please provide a minimal sample project along with the minimal steps to recreate the issue in the project.
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.