Compose deeplinks not working with the nested NavHosts.
I have an app that has a HomeScreen, then a DrawerScreen (with few screens nested inside the drawer. in the diagram below i mentioned only 2 for simplicity) and a Detail screen outside the drawer
[Nav Host]
| - HomeScreen
| - Drawer Screen [Nav Host]
| -- -- Screen A
| -- -- Screen B
| - Detail Screen
My Screen A has a deep link configured, But when i open the app through deep link it just opens to the HomeScreen. I saw few threads with mentioned we should not use Nested NavHosts. But Why?
The Jetsnack sample app has nested navhost. NowinAndroid app has Nested NavHosts. If we should not use nested NavHosts. how to implement this structure without nested NavHost?. I read few threads that suggests to use shared elements in the case of bottom bar screen to achieve this structure...But i dont understand why we should not use Nested Navhosts?. Please help me with your suggestions.