Jetpack Compose: Debugging recomposition

Поділитися
Вставка
  • Опубліковано 9 лют 2025

КОМЕНТАРІ • 49

  • @rohanmanchanda5250
    @rohanmanchanda5250 2 роки тому +21

    Crickey Mite!! It was actually the kind of video that many of us needed. It's like you took the video right out of our brains...

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому +3

      We really appreciate your feedback and support, Rohan! Glad you enjoyed this 😀
      Don't forget to check out the links in the description for more tips and tutorials!

    • @bentrengrove
      @bentrengrove 2 роки тому

      🇦🇺🪃

  • @KofiAccra
    @KofiAccra 2 роки тому +7

    This video was dropped at the perfect time! thank you!

  • @ehsanshadi810
    @ehsanshadi810 2 роки тому +8

    That was really informative. So many good ideas. Like how to use the layout inspector and fixing unnecessary recompositions.

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому +2

      Thank you so much for your feedback and support, Ehsan! Be sure to subscribe to stay updated with all the latest from Android Developers: goo.gle/AndroidDevs

  • @yasserakbbach7342
    @yasserakbbach7342 2 роки тому +5

    We need more of this

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому +2

      We really appreciate the positive feedback, Yasser! Thanks for watching 😎
      Don't forget to check out the links in the description for more tips and tutorials!

  • @YairCarreno
    @YairCarreno 2 роки тому +3

    What valuable information 🔥. Thank you very much for this video 🙏. Now I want to debug my application, and we'll see how many recomposition defects I find 😁.

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому +2

      Thanks for taking the time to share your feedback with us, Yair! We appreciate you 👍
      Don't forget to check out the links below the description for more tips and tutorials!

  • @EdgarGarcia17
    @EdgarGarcia17 7 місяців тому

    Exactly what I needed 🎉thanks a lot.

  • @gregdomski
    @gregdomski 2 роки тому +2

    Nice! Thank you. You should also include information about your Android Studio setup since the fonts and colors look good!

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому

      Thank you for your feedback, we really appreciate it 😀
      We're glad you enjoyed the video! Be sure to check out the links in the description for more tips and tutorials!

    • @bentrengrove
      @bentrengrove 2 роки тому

      It's just the built in template, Darcula

  • @IncompleteTheory
    @IncompleteTheory 2 роки тому +3

    Nicely done and in line with many recent help docs and videos from Google. So, nice though as Compose is - I can't help but feel a bit scared that you need to tread this carefully to realize rather basic UI design. Google will have to keep on praying these details because people will make those kinds of mistakes over and over again. I hope tooling will continue to improve to help catch some of this.

  • @Raptorel
    @Raptorel Місяць тому

    Super interesting, thanks!

  • @codeforandroid
    @codeforandroid 2 роки тому +1

    Very Nice learning video

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому

      We really appreciate the positive feedback! Thanks for watching 😃

  • @KingFuYouTube
    @KingFuYouTube 2 роки тому +1

    Thank you for the tip! can we have more of this please.

  • @ashwin_mahajan
    @ashwin_mahajan 2 роки тому +1

    Love Compose, thx

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому

      We're delighted that you enjoy using Jetpack Compose, Ashwin! Thanks for the support 🙌

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

    In the Blog post, after switching to scrollProvider but still using graphicLayer's "regular" version (the steps are done in a different order), it says: "This will defer the reading of state and at least limit the scope of recomposition to just the Title composable." - But this was always the case wasn't it? Only Title compose was being recomposed right from the beginning, or am I missing something? Thanks for this video + article.

  • @louiscad1149
    @louiscad1149 2 роки тому +2

    Good stuff.

  • @yerlansarsenov1202
    @yerlansarsenov1202 2 роки тому +2

    Very informative content, thanks a lot! What if instead of passing lambda, we'll pass State and read the value as state.value? I think it should work in similar way as passing lambda. Please, let me know any insight

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому

      Hi Yerlan, thanks for watching!
      While this does work, we discourage it as it generally makes your code harder to write and understand. For instance, you wouldn't be able to use the "by" property delegate for state anymore and would have to change all your states read to state.value.
      Hope this helps clarify 🙂

  • @tenseikenzx-3559
    @tenseikenzx-3559 2 роки тому +1

    Great stuff

  • @mohammad-hossein-farzanegan
    @mohammad-hossein-farzanegan 8 місяців тому

    Thanks.

  • @odifek
    @odifek 2 роки тому +4

    What version of android studio has this feature please?

    • @elliotskinner3097
      @elliotskinner3097 2 роки тому +1

      Electric Eel which is the current canary build

    • @bentrengrove
      @bentrengrove 2 роки тому +7

      Recomposition counts are in Dolphin 🐬. Recomposition highlighting is in Electric Eel ⚡

  • @hescul
    @hescul 2 роки тому +1

    i love this

  • @mamuwu7873
    @mamuwu7873 2 роки тому +3

    Amazing

    • @AndroidDevelopers
      @AndroidDevelopers  2 роки тому +1

      Thanks for watching😀
      If you enjoyed this video, check out the links in the description for more tips and tutorials!

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

    👋🏼🇨🇴🧔🏻👍🏼🤝🏻 Saludos desde la ciudad de Bogotá

  • @NealSanche
    @NealSanche 2 роки тому +2

    Next, do this work at the compiler layer so we don't have to?

  •  2 роки тому +1

    My app is crashing everytime I try to use the layout inspector

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

    Since Box is an inline function and as such it does not act as a recomposition scope, shouldn't the entire SnackDetail recompose at the beginning of the video, too?

  • @albab790
    @albab790 2 роки тому +1

    Thanks

  • @ngomdecadetkamdaou3464
    @ngomdecadetkamdaou3464 2 роки тому

    Thanks, That was very helpful.
    But my app keeps crashing when I open the layout inspector in both AS Dolphine 2021.3.1 and flamingo 2022.2.1 Canary 1

  • @LightDante
    @LightDante 2 місяці тому

    Is it possible for the compose to defer read itself?

  • @eganathan.r
    @eganathan.r 2 роки тому +1

    Thank you

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

    It is too tricky for developing this UI

  • @jg-jsbg4725
    @jg-jsbg4725 2 роки тому +1

    JETPACK COMPOSE : DEBUGGING RECOMPOSITION

  • @Maarttttt
    @Maarttttt 2 роки тому

    Pleeeeeaaaaaaase fix the layout inspector. It keeps on crashing

  • @rabiulytvolog01
    @rabiulytvolog01 2 роки тому

    its true

  • @zakishaikh2223
    @zakishaikh2223 2 роки тому

    Hey Android team, I want to know that when will you launch design to code plugin for Android studio

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

      modern app development is already as simple as 1+1. the more you facilitate - the more you loose in performance. the rule that won't be broken for the next decade for sure.

  • @noctislucispacis6082
    @noctislucispacis6082 2 роки тому

    Hello don't hidden usb debbugging
    Putting in setting
    Add Thermal Monitor
    Add Built in Gcam any Device

  • @agungwatanabe318
    @agungwatanabe318 2 роки тому

    The recomposition is gone, but my app still has scrolling lag issue. Both Modifier.offset { } or Modifier.graphicsLayer { }. Any ideas?