Hi, I was trying to read the Android documentation...
# compose-desktop
e
Hi, I was trying to read the Android documentation about state holders, but I don't really get it, I think I need to read some more examples... Do you guys know any apps that use that design pattern that I can look at as an example?
k
#compose
e
I posted this here because I was asking for a compose desktop app, I just talked about the android docs because it is the only one available, but I'll take a look, thanks
c
There's no difference in State management between Android and Desktop Compose apps. Android has its own
ViewModel
implementation but that should be considered an implementation detail; the ViewModel pattern is not tied to Android or its
ViewModel
class. Here's an example I've posted here before showing how to do the same pattern in a pure-Kotlin way: https://kotlinlang.slack.com/archives/C01D6HTPATV/p1644259697620799?thread_ts=1644257413.142249&cid=C01D6HTPATV