Modern Compose Architecture with Circuit by Zac Sweers and Kieran Elliott
Вставка
- Опубліковано 10 вер 2024
- Recording brought to you by American Express. americanexpres...
Compose is revolutionizing UI development, but why stop there? At @Slackhq we’ve been developing a new Compose-first open-source architecture called Circuit. In this talk, we’ll detail how Circuit works and how we’re powering UI business logic with Compose to make writing applications (and their tests!) simple and easy.
Oh, and multiplatform.
This session is co-presented by Zac Sweers, Mobile at Slack and Kieran Elliott, Software Engineer at Slack.
Talk by: Zac Sweers and Kieran Elliott
#Circuit #Compose #KotlinConf
I've seen so many examples and guides explain that you should do the code at 02:00. Thank you for calling that out.
Does the definition of the eventSink function inside the state cause composables that call it (such as the button) to recompose when the state changes?
why should I do that ? what is the benefit of that over MVVM/MVI ?
Compose iOS support should be there!!
How about you contribute it to the project then.
@@Mrdresden I’m thinking about that actually
@@tamim7460 Landed preliminary support on main :). When we were preparing the talk, compose for iOS was not yet in alpha (announced at the same conference)
@@Pandanomic awesome, thanks for the info
Nice talk
It is for great for MVP and Compose. But I have a bad news it is same thing MVVM
fun foo(vm){
collect state
}
fun foo(state){
state
} 😕
Can i use circuit with Hilt?
We haven't tried it but nothing should prohibit it, once you get to compose then Circuit can run from there.
@@johnbuhanan5857 circuitinject, as its readme says, is intended for use with Anvil. You can build something else for use with hilt if you want though, my comment was more that there's nothing inherently stopping you
@@Pandanomic so generally speaking, if i open a new project (moving from an old monolith to new modularized project, circuit will happy with Dagger Anvil?
@@shahar19971 that's how we use it at slack and in the circuit star sample
Circuit is the future...