How do you guys manage global state? I can't find ...
# compose-desktop
b
How do you guys manage global state? I can't find @Model annotation on desktop-compose
j
@Model
was deprecated many month/releases ago. The new way of creating something like a Model is to use
mutableStateOf
.
Copy code
class MyModel {
   val whatever by mutableStateOf(...)
   val fields by mutableStateOf(...)
   val here by mutableStateOf(...)
}
b
Thanks