folks I have an issue with the nav3 library just (2 months or so ago ) dropped by the android team
It concerns the sharedviewmodels that was a great performance management technique to scope shared state across screen boundaries since many years now , even before compose
Now as per the new nav3 introduction , they have sort of buried the idea of a "nested nav graph" , and in effect that would also mean we cannot scope a viewmodel across multiple destinations .
Any idea guys how about should we do that now ? Strangely the official docs are silent about this .
There is a way to use the sharedViewModel in nav3 too , like posited
here , but this suffers from the issue that any destination that takes in a sharedViewModel , CANNOT use a viewmodel that is scoped to itself as mentioned in an issue
here.
Sooo yeah , any inkling as to how should we go about sharing data across a few composables guys if not for sharedviewmodel ?