Why not just use Intent and State? #84
-
I don't know why transform Event to Intent,and transform State to Model,why not just use Intent and State,there are too many sealed class |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Thanks for the question, concerted this to discussion. That separation is to keep UI and Store decoupled. Also the separate Model may contain UI specific things, whereas State may contain business logic specific things. But this is not obligatory, you may use same classes if you like. |
Beta Was this translation helpful? Give feedback.
-
MVI (Model-View-Intent) and Redux are both state management patterns. Differences:
MVIKotlin has a lot in common with Redux, but the most important difference is that it is recommended to have separate stores for different screens. |
Beta Was this translation helpful? Give feedback.
-
There is no ViewModel and LiveData in IOS, where are the replace of them in cross platform? |
Beta Was this translation helpful? Give feedback.
Thanks for the question, concerted this to discussion.
That separation is to keep UI and Store decoupled. Also the separate Model may contain UI specific things, whereas State may contain business logic specific things. But this is not obligatory, you may use same classes if you like.