Hi, how do you handle state in desktop apps? I s...
# compose-desktop
v
Hi, how do you handle state in desktop apps? I see in desktop I cannot use ViewModel.... I've manage to setup Koin, which I guess can hold state... But is that the way? How do you extract your state from composables in desktop app?
a
you can use ViewModel in desktop, you just need to depend on
org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose:2.8.2
instead of the usual ViewModel library
v
thank you!