adrielcafe / voyager

🛸 A pragmatic navigation library for Jetpack Compose
https://voyager.adriel.cafe
MIT License
2.27k stars 109 forks source link

navigator scoped for viewmodel (moko-mvvm) #353

Open fjr619 opened 2 months ago

fjr619 commented 2 months ago

I know that this library support navigator scoped screen model. But in my case there is screen that already implement moko mvvm that i want to scope it with navigator, so i can share that viewmodel accors navigation when still a live. how to achieve that?

DevSrSouza commented 1 month ago

Moko MVVM on Android uses the Androidx ViewModel, I assume that if we have support for Androidx ViewModel Navigator Scoped ViewModel, it should work.

Dedicated support for Moko MVVM for Compose KMP we should consider as well.