TOP 3 Mistakes With Jetpack Compose (Avoid at All Cost 😱)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024

ความคิดเห็น • 53

  • @samadMahmoodi
    @samadMahmoodi ปีที่แล้ว

    we need more videos like this, there is so many mistakes that an android developer can make with jetpack compose

  • @srikanthmacha7990
    @srikanthmacha7990 ปีที่แล้ว +4

    These "Best practices" videos are really helpful 🙇 ...... Please keep them coming!

  • @Skumfuk01
    @Skumfuk01 ปีที่แล้ว +6

    Great video, please make more like this about tips in Jetpack Compose or common mistakes that you often come across in Compose.

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @yury4224
    @yury4224 ปีที่แล้ว +1

    Cool transition effect between clips!
    Kudos as always, thank you Philipp

  • @CommanderSteps
    @CommanderSteps ปีที่แล้ว +2

    Love those performance related videos. Just a short video with three issues I can quickly watch and scan my codebase for.

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @DARKcarlos1
    @DARKcarlos1 ปีที่แล้ว +7

    Cool video, the LaunchedEffect one was really useful… btw, I want to know if having a preview in every composable reduces performance while developing or increase build times

    • @imamyusupbachtiar5461
      @imamyusupbachtiar5461 ปีที่แล้ว +1

      yeah, sometimes it take a long time to render a UI. i think for the further, android teams will be aware with this problem.

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @simonemapelli
    @simonemapelli ปีที่แล้ว

    First of all, thank you for your video Phil, very useful and clear. A question about mistake #1, maybe I go wrong: what if instead of using a lambda, I use delegation instead of assignment of scrollstate, that is using val scrollState by rememberScrollState() instead of
    val scrollState = rememberScrollState() ? in this way the delegation keep the same MutableState reference, do not create a new state and do not cause recomposition everytime the value of state change because the reference is always the same.

  • @emmanuelpregnolato5026
    @emmanuelpregnolato5026 ปีที่แล้ว

    Thank you Phil, you helped me. I was guilty for point #2.

  • @rahul_spawar
    @rahul_spawar ปีที่แล้ว

    More videos like this, please❤❤

  • @imamyusupbachtiar5461
    @imamyusupbachtiar5461 ปีที่แล้ว +1

    Thanks a ton, you save my apps😁, after seeing this video. i'll check again with my compose codes and follow these guides. thanks brow😁

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @FreedivingTrainer
    @FreedivingTrainer ปีที่แล้ว

    Awesome video! Thanks
    What hotkey did you use for moving if(isLoggedIn) to under LuancheEffect scope? 7:48

  • @includejoe
    @includejoe ปีที่แล้ว

    Hi Philipp, I want to join your members-only to be able to watch some members-only videos, however i can't seem to find the join button on your channel page. any help?

  • @KingFuYouTube
    @KingFuYouTube ปีที่แล้ว

    Happy holidays and I Love this video. Please do a tutorial on nested scrolling if can.

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @malschauen6267
    @malschauen6267 ปีที่แล้ว +10

    Good content doesn't need such clickbait titles. And I want to stress that I find the content on this channel very helpful and high quality.

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @original_anu
    @original_anu ปีที่แล้ว

    Thanks for these tips :D
    Merry Christmas 🎉

    • @yury4224
      @yury4224 ปีที่แล้ว +1

      Scam, don't fall for it

    • @original_anu
      @original_anu ปีที่แล้ว

      Thanks@@yury4224 . I wonder when TH-cam will fix this

  • @Nick-cx4rs
    @Nick-cx4rs ปีที่แล้ว

    is layout inspector working on dolphin ? Select process > Pixel 4 Api 31 > No debuggable process detected on me

  • @salvadorjohndeniel
    @salvadorjohndeniel ปีที่แล้ว

    Thank you for these tips it was very helpful❤️

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @IbrahimTariq-cl3wk
    @IbrahimTariq-cl3wk ปีที่แล้ว

    thanks for the amazing content

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

    • @IbrahimTariq-cl3wk
      @IbrahimTariq-cl3wk ปีที่แล้ว

      @@yury4224 hhaha yes
      thanks btw

  • @milon27
    @milon27 ปีที่แล้ว

    what is your pc configuration? my emulator is very slow.

  • @george_sigalas
    @george_sigalas ปีที่แล้ว

    A comment on the first mistake. Passing around lambdas can be pretty dangerous in an OOP world, be careful when passing function references to classes and objects as you may introduce memory leaks that can be quite hard to diagnose.

    • @str2254
      @str2254 ปีที่แล้ว

      Could you share an example or article explaining this? 🤔

    • @odifek
      @odifek ปีที่แล้ว +2

      AFAIK the lambda used here is all in compose context so it is safe. It would be bad for example to pass a lambda from the UI to the ViewModel since the UI has a shorter lifespan than the viewModel. This would lead to a memory leak

  • @Leon-un2ii
    @Leon-un2ii ปีที่แล้ว

    Love ur Videos. Please do an alarm clock app next

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

    • @Leon-un2ii
      @Leon-un2ii ปีที่แล้ว

      Already reported but TH-cam is slow

  • @David-zb8br
    @David-zb8br ปีที่แล้ว

    Hey philipp, does the same apply float state values like for example a detecttransformgestures float which changes a lot overtime? 1:40

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @HoveredCubeOfficial
    @HoveredCubeOfficial ปีที่แล้ว

    Are able to use JetPack Compose in android part of KMM?

  • @mustafaammar551
    @mustafaammar551 ปีที่แล้ว

    you are the best

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @jovaniswank8422
    @jovaniswank8422 ปีที่แล้ว

    hello Philipp
    first of all i wanna appreciate your videos i really enjoy learning with ya
    secondly
    im facing a problem with sharing a viewmodel between navhsost children i tried all the solution ( uk stackOverFlow , docs ) but nothing helpful there the navhost keep recreating the viewmodel :(
    so i really need your help man

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @kennian5979
    @kennian5979 ปีที่แล้ว

    Hey Philipp. How did you get that UI for Android Studio?

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

  • @fayaz.m
    @fayaz.m ปีที่แล้ว

    Our team did the mistake number 3 and the app was like freaking itself, I had to debug it and move it to side effect

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it

    • @fayaz.m
      @fayaz.m ปีที่แล้ว

      @@yury4224 You deserve a special place in Heaven

  • @AntonioGonzalezsanchez
    @AntonioGonzalezsanchez ปีที่แล้ว

    this is the comment side of things

  • @proandroiddevir
    @proandroiddevir ปีที่แล้ว

    💪💪💪👏👏👏👏👏👏👏👏👏

    • @yury4224
      @yury4224 ปีที่แล้ว

      Scam, don't fall for it