What architecture is better to use with compose. I...
# compose
g
What architecture is better to use with compose. I think MVP looks not bad
I always use MVVM, but i dont know how LiveDatas will look with compose
b
there's a post of @Luca Nicoletti talking about a mvi implementation - https://medium.com/swlh/android-mvi-with-jetpack-compose-b0890f5156ac , personally I've liked some points of this sample, but I'm going to change somethings like create my own state machine with coroutines and use it instead of livedatas, but the thing that I've liked in this post and I've already tried to do something like that with the imperative view style was the idea of create your states on action declaration, this is awesome that compose allow us to do that just by creating composable functions, and I'm going to bring it to my projects.
l
@bloder Thanks for featuring! Yeah that’s quite an old post 😛 I ditched
LiveData
now, relying way more on
RxJava
and planning as you did to go `coroutine`s. But the idea is that
Compose
will allow us to have a full functional approach 🙂
I might write an update to that blogpost, may be worth it 🙂
b
yeah! would be great a new post, It's good to see that community is engaged with this functional approach, I really loved it 🙂
s
Any unidirectional dataflow architecture will be a good fit for Compose
👍 7
💯 2