enighma
06/14/2020, 6:32 PMkenkyee
06/14/2020, 6:52 PMZach Klippenstein (he/him) [MOD]
06/14/2020, 7:08 PMenighma
06/15/2020, 1:19 AMkenkyee
06/15/2020, 1:41 AMZach Klippenstein (he/him) [MOD]
06/15/2020, 2:41 PMApp()
composable that you invoke from your activity and call out to all the rest of your app logic from that, the App()
composable is a reasonable place to host your state.
Or you can pull that state out into an AndroidX ViewModel or some other stateful type, that works too.
Compose is just a tool, and you can use it to implement patterns like unidirectional state flow. I would argue that point of USF is generally the same as any other architectural pattern: to help you separate concerns. You can do that entirely within something like Compose, or use other tools too, it's just a pattern.enighma
06/16/2020, 1:04 AM