What if my view model requires some info from a pa...
# android
r
What if my view model requires some info from a parent view model? E.g. I've got a device connected, and I wanna modify some parts of it, how would I forward the connection handler from the parent VM to the child VM?
not kotlin but kotlin colored 3
p
Are you using navigation-compose? If so you can create a ViewModel scoped to the containing graph and access it by its route id from each child destination instance. If you are using navigation-compose you can ask in #compose