r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Dec 04 '25
@Deprecated AndroidX ViewModels are deprecated by Jetpack Compose
87
Upvotes
r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Dec 04 '25
21
u/hellosakamoto Dec 04 '25
I was told by some authoritative figures in this industry that compose should be stateless and free of side effects?
4
u/_abysswalker Dec 04 '25
so the team decided to draw inspiration from React not only for the AP, structure and etc, but also for building a gorillion context-specific hooks
4
u/Araib Dec 04 '25
ViewModels deprecated? Where does the repo/usecase go now?
3
u/turelimLegacy Dec 04 '25
I know this is a meme sub but i kinda dig the new api. Not everythting needs to have a ViewModel lifecycle and you get to pick and choose.
77
u/ElbowStromboli One WebView to rule them all Dec 04 '25
retain { MainActivity() }
31
u/devsofian Dec 04 '25
I've always wanted to initialize my media player in the "allegedly" UI code.... F*cking webdevs....
13
u/aerial-ibis R8 will fix your performance problems and love life Dec 04 '25
"media playback doesn't get interrupted by a configuration change"
like we all dont know the configuration change in question
15
u/New_Somewhere620 Dec 04 '25
I just got comfortable with using OOP style. Now they want me to go back to React/Functional style again?
2
u/[deleted] Dec 04 '25
I'm glad I'm not developing for Google Play anymore.
1
u/vashchylau Dec 04 '25
not again. can we just stop already?
2
u/gilmore606 ?.let{} ?: run {} Dec 05 '25
[removed] — view removed comment
2
u/[deleted] Dec 05 '25
Compost me harder daddy 😮💨😮💨😮💨😮💨
0
u/[deleted] Dec 04 '25
[deleted] — view deleted comment
1
u/[deleted] Dec 09 '25 edited Dec 09 '25
[removed] — view removed comment