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

КОМЕНТАРІ • 16

  • @JacquesSmuts
    @JacquesSmuts Рік тому +9

    I've seen so many examples and guides explain that you should do the code at 02:00. Thank you for calling that out.

  • @FilippoVigani
    @FilippoVigani Рік тому +2

    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?

  • @abdelrahmanesam3684
    @abdelrahmanesam3684 Рік тому +4

    why should I do that ? what is the benefit of that over MVVM/MVI ?

  • @tamim7460
    @tamim7460 Рік тому +6

    Compose iOS support should be there!!

    • @Mrdresden
      @Mrdresden Рік тому +3

      How about you contribute it to the project then.

    • @tamim7460
      @tamim7460 Рік тому

      @@Mrdresden I’m thinking about that actually

    • @Pandanomic
      @Pandanomic Рік тому +2

      ​@@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)

    • @tamim7460
      @tamim7460 Рік тому

      @@Pandanomic awesome, thanks for the info

  • @andy_lamax
    @andy_lamax Рік тому +2

    Nice talk

  • @elsenalmasli1499
    @elsenalmasli1499 Рік тому +1

    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
    } 😕

  • @shahar19971
    @shahar19971 Рік тому +1

    Can i use circuit with Hilt?

    • @Pandanomic
      @Pandanomic Рік тому +3

      We haven't tried it but nothing should prohibit it, once you get to compose then Circuit can run from there.

    • @Pandanomic
      @Pandanomic Рік тому +1

      @@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

    • @shahar19971
      @shahar19971 Рік тому

      ​@@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?

    • @Pandanomic
      @Pandanomic Рік тому +1

      @@shahar19971 that's how we use it at slack and in the circuit star sample

  • @johnbuhanan5857
    @johnbuhanan5857 6 місяців тому

    Circuit is the future...