Join Slack
What's the point of remembering the graph in `NavHost` here? As far as I understand it makes it igno...
# compose
n
natario1
05/25/2021, 10:02 AM
What's the point of remembering the graph in
NavHost
here? As far as I understand it makes it ignore any graph update.
https://github.com/androidx/androidx/blob/androidx-main/navigation/navigation-compose/src/main/java/androidx/navigation/compose/NavHost.kt#L98
natario1
05/25/2021, 10:08 AM
If this is intended (e.g. graph should never change), then I don't understand why we bother recreating the graph in the other NavHost signature?
https://github.com/androidx/androidx/blob/androidx-main/navigation/navigation-compose/src/main/java/androidx/navigation/compose/NavHost.kt#L66-L68
a
Andrew Neal
05/25/2021, 10:21 AM
https://github.com/androidx/androidx/commit/a3ecea48bb6042981da0857fd600bd62e20763fd
5
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by