Travis Reitter
12/21/2022, 5:09 PMComposable. It seems like my BaseMviView-derived view implementation doesn't quite fit Compose with its explicit render() function. How should I map user input to my component? And should I just have my component expose its store.states: Flow<State> so I can use it as the top-level state for my Composable? Thanks!Travis Reitter
12/21/2022, 5:10 PMArkadii Ivanov
12/21/2022, 5:33 PMprivate var model by mutableStateOf(YourModel()) , and let the render method just update the model property. Then you need to add @Composable fun Content() { ... }, where you render YourModel.
Another option is to not use MviView and expose State<YourModel> from the component/controller.Travis Reitter
12/22/2022, 12:26 AM