Jasin Colegrove
03/15/2022, 9:57 PMCasey Brooks
03/15/2022, 10:13 PMSavedStateHandle
on Android. But it is not intended to be used as a State Management layer like Redux.
I've shared a snippet here before of an example of custom State Management in Compose Desktop, for a basic idea of how it all works from a centralized ViewModel-type pattern: https://kotlinlang.slack.com/archives/C01D6HTPATV/p1644259697620799?thread_ts=1644257413.142249&cid=C01D6HTPATV
And finally, I haven't shared it publicly yet, but I'm getting very close to releasing a new library for State Management which works on Compose Desktop. You can preview it here though there's not much documentation yet.Big Chungus
03/15/2022, 10:48 PMJasin Colegrove
03/15/2022, 11:38 PMrocketraman
03/16/2022, 4:38 AMKamilH
03/16/2022, 6:14 AMHumphrey
03/16/2022, 7:33 AMCasey Brooks
03/16/2022, 2:25 PMJasin Colegrove
03/16/2022, 2:47 PMCasey Brooks
03/16/2022, 2:53 PMContract
is just that: a contract. It doesn't do anything by itself, it's just a declarative model of your the data and interactions of a screen, as a bunch of classes. The ViewModel (and it's related components) are what actually implement the MVI pattern; the ViewModel holds onto the State object (as a StateFlow) and processes the Inputs as they are sent to the ViewModelJasin Colegrove
03/16/2022, 2:58 PMCasey Brooks
03/16/2022, 2:59 PMAdam Powell
03/16/2022, 3:38 PMArkadii Ivanov
03/16/2022, 3:45 PMnavigation-compose
+ ViewModel
, Decompose, etc. The later concept can be handled by the various MVx libraries.Casey Brooks
03/25/2022, 6:26 PM