Is good to use viewmodels for compose desktop? If yes then which dependency should I use?
z
Zach Klippenstein (he/him) [MOD]
02/09/2025, 5:49 PM
View models as an architectural concept, sure. ViewModel the androidx library? I wouldn’t even use that on android
🙈 1
s
Stan van der Bend
02/09/2025, 10:10 PM
I highly recommend using https://github.com/arkivanov/Decompose
it has helped me decouple logic from ui that I felt was hard to do in plain compose and similar solutions (e.g. voyager)