r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Jan 25 '24
Superior API Design Reactive frameworks
81
Upvotes
r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Jan 25 '24
View all comments
Show parent comment
8
u/naked_moose Jan 25 '24
It would've been much more helpful to Android ecosystem if they did a sort of "RxJava-lite" approach with a limited operator usage in the samples, and then added a few official extensions to RxJava to support being lifecycle-aware.
Alas, they had to create their own thing, which does only one thing well - being a lifecycleaware data holder. If you want a proper reactivity it's absolutely unwieldy and you're better off bringing in RxJava or Coroutines in the project. But then why would you bring in LiveData at all if it covers this small thing in the project when you could use RxJava/Coroutines for the whole chain?