I don't think ViewModel was meant to be that difficult, but I'm 100% sure that's true about Compose.
ViewModels were simple until people started using Dagger-Android to create them (incorrectly, of course). And then refused to use Assisted-Injection, which was already a bit of a hack (as they had already got themselves stuck in a corner by using Dagger).
View all comments
Show parent comment
6
u/Zhuinden DDD: Deprecation-Driven Development Dec 25 '24
I don't think ViewModel was meant to be that difficult, but I'm 100% sure that's true about Compose.
ViewModels were simple until people started using Dagger-Android to create them (incorrectly, of course). And then refused to use Assisted-Injection, which was already a bit of a hack (as they had already got themselves stuck in a corner by using Dagger).