Enrico Saggiorato

02/20/2022, 2:08 PM
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?

Kirill Grouchnikov

02/20/2022, 2:16 PM

Enrico Saggiorato

02/20/2022, 2:20 PM
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

Casey Brooks

02/21/2022, 5:26 PM
There's no difference in State management between Android and Desktop Compose apps. Android has its own
implementation but that should be considered an implementation detail; the ViewModel pattern is not tied to Android or its
class. Here's an example I've posted here before showing how to do the same pattern in a pure-Kotlin way: