PreCompose icon indicating copy to clipboard operation
PreCompose copied to clipboard

Support for Google's Viewmodel which recently went multi-platform

Open kawaiiDango opened this issue 1 year ago • 5 comments

(Feature request)

According to https://issuetracker.google.com/issues/214568825 viewmodel is now multi-platform. It would be nice to have support for that if possible.

Edit, looks like viewmodel-compose isn't, yet. It can be tracked here https://issuetracker.google.com/issues/330323282

kawaiiDango avatar Mar 22 '24 21:03 kawaiiDango

With the recent release of multiplatform support for Jetpack Lifecycle and ViewModel, I think we can expect Jetpack Navigation Compose to be multiplatform, which can be tracked here https://issuetracker.google.com/issues/281774647. My initial thought is that we can migrate PreCompose's Lifecycle and ViewModel to Jetpack's implementation and deprecate the current implementation, but I haven't decided yet.

Tlaster avatar Mar 23 '24 04:03 Tlaster

With the recent release of multiplatform support for Jetpack Lifecycle and ViewModel, I think we can expect Jetpack Navigation Compose to be multiplatform, which can be tracked here https://issuetracker.google.com/issues/281774647. My initial thought is that we can migrate PreCompose's Lifecycle and ViewModel to Jetpack's implementation and deprecate the current implementation, but I haven't decided yet.

See Jetbrains branch Navigation Multiplatform Lifecycle Multiplatform ViewModel Multiplatform Maven Repository

Sanlorng avatar Apr 08 '24 08:04 Sanlorng