You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect the extension to return, for FromSettingsLoginGraph, the given destinations: [FromSettingsLoginLoginScreenDestination, FromSettingsRegisterRegisterScreenDestination], but it seems to only return FromSettingsLoginLoginScreenDestination.
Is this an expected behavior ?
I used a small function to check if my current destination is well a part of the nested navigation:
and it returns true when I navigate to (so when appCurrentDestinationState route equals:) FromSettingsRegisterRegisterScreenDestination. So it seems it is indeed a part of the nested graphs!
By looking at your code, inside the SpecExtension.kt file, it seems you are recursively returning all destinations, even those from nestedNavGraphs, so I guess it is a bug?
I'm looking forward to hear your advice on this! Thank you
The text was updated successfully, but these errors were encountered:
Hello!
I encountered an issue where calling my current NavGraph .allDestinations extension is not returning the nested nav graphs destinations.
Here is my generated tree:
I expect the extension to return, for FromSettingsLoginGraph, the given destinations:
[FromSettingsLoginLoginScreenDestination, FromSettingsRegisterRegisterScreenDestination]
, but it seems to only returnFromSettingsLoginLoginScreenDestination
.Is this an expected behavior ?
I used a small function to check if my current destination is well a part of the nested navigation:
and it returns true when I navigate to (so when appCurrentDestinationState route equals:)
FromSettingsRegisterRegisterScreenDestination
. So it seems it is indeed a part of the nested graphs!By looking at your code, inside the
SpecExtension.kt
file, it seems you are recursively returning all destinations, even those from nestedNavGraphs, so I guess it is a bug?I'm looking forward to hear your advice on this! Thank you
The text was updated successfully, but these errors were encountered: