airbnb / mavericks

Mavericks: Android on Autopilot
https://airbnb.io/mavericks/
Apache License 2.0
5.8k stars 496 forks source link

Any plans to remove ViewModel dependency from mavericks-compose artifact? #605

Open kaushalyap opened 2 years ago

kaushalyap commented 2 years ago

In Jetpack Compose world ViewModels seems unnecessary. Seems member of Compose team think so too. We could accomplish more than the purpose of VM using saveableComposeState

What you folks think? Can ViewModel dependency be removed from mavericks-compose artifact?

elihart commented 2 years ago

it sounds like you're asking for kotlin multi platform support. It would be nice to support, but it is not trivial and can't just be done for the compose artifact, it would have to be done for the whole library. There are currently no plans to do that.

kaushalyap commented 2 years ago

While KMM is nice to have, do not you think VM dependency is necessary in the world of Jetpack Compose? (this change will bring MVI pattern on Android closer to React Redux world)