hi there! I’m wondering how to manage state in compose desktop. Are you using viewmodels? We use viewmodel in android because of it’s lifecyclle aware but here there is no change orientation and that stuff. Do you create your own viewmodel? Or are you using MVI, MVP?
But at the end you need something like that. In compose for desktop i do not have really a simple solution yet. I think you could use singletons. Or use any system of singletons. At the end it depends on the lifecycle of your viewmodels. If it is engough when they are live as long as the composable than you can just create State classes instead of viewmodels. And use remember { YourStateClass() } to remember them.