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
This is more of a question, but how does one manage to correctly share the ViewModel between destinations in a nav graph.. eg scoping the ViewModel to the nav graph
I looked at the documentation, but I failed to make it work, because the generated NavGraphs don't contain the subgraph.. eg in the documentation there is NavGraphs.settings but such field does not get generated
I tried passing the nav graph directly, but it crashes because it does not implement Serializer. The solution I ended up using was something like this
Is this the correct approach or am I missing something?
I also saw #19 but it also uses the generated field that does not get generated again and also it looks like it would need to be placed in the main app module due to the way dependencies are done.
The text was updated successfully, but these errors were encountered:
Hello,
This is more of a question, but how does one manage to correctly share the ViewModel between destinations in a nav graph.. eg scoping the ViewModel to the nav graph
I looked at the documentation, but I failed to make it work, because the generated
NavGraphs
don't contain the subgraph.. eg in the documentation there isNavGraphs.settings
but such field does not get generatedI tried passing the nav graph directly, but it crashes because it does not implement Serializer. The solution I ended up using was something like this
Is this the correct approach or am I missing something?
I also saw #19 but it also uses the generated field that does not get generated again and also it looks like it would need to be placed in the main app module due to the way dependencies are done.
The text was updated successfully, but these errors were encountered: