hello, what would be the best way to keep a list o...
# compose-desktop
g
hello, what would be the best way to keep a list of global states that get updated constantly by background thread? currently just adding a bunch of
mutableStateOf
on the main class at the top of my app
t
are u looking at something like redux ?
g
no not really, just new to mobile/desktop so wondering what the convention is
I hate redux btw
t
I don't knw what the best practice here. but I use a viewModel for each screen. here's an example: https://github.com/theapache64/stackzy/blob/master/src/main/kotlin/com/theapache64/stackzy/ui/feature/splash/SplashViewModel.kt
👍 1