Navigator Instance
NavContainer provides the navigator it's using to all its children using Composition Locals.
We can use the below to get the current navigator inside a Composable.
For instances where we are nesting a navigator inside another navigator's NavContainer
and we want the direct parent we can use:
Make sure to hoist the navigation operations to another Composable. To make previews easier.
Last updated