Jetpack Compose - Side Effects | Launched Effect With Example | CheezyCode Hindi

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 30

  • @hamza-hy5rv
    @hamza-hy5rv 7 месяцев назад +5

    I am old timer Android developer who has seen the android evolution since ginger bread versions till now. Worked on multiple MNCs, dealt with large enterprise apps dealing with millions of customers.Your videos are helpful to an old timer like as well me who is able to compare the benefits and needs of these newer concepts. Keep up the good work !!

    • @sinbad552
      @sinbad552 7 месяцев назад

      can we connect please?

    • @hamza-hy5rv
      @hamza-hy5rv 7 месяцев назад

      @@sinbad552 Sure.This is regarding ?

  • @MegnaS-vg9sy
    @MegnaS-vg9sy Год назад

    Thanks a lot for making this topic simple and understandable. I have read many articles and watched videos, but nowhere I found an explanation as simple as this. 🙏

  • @TheEncouragementRoom
    @TheEncouragementRoom 8 месяцев назад +1

    I really enjoyed the playlist, the explanation was great and you made it so easy to understand. I have a course on udemy, but still I'm watching this playlist becuase of the content you provided for free.

  • @abhishek..bharti
    @abhishek..bharti 8 месяцев назад +1

    Thanks, it's such an easy and simple explanation.

  • @gauravpandey1804
    @gauravpandey1804 3 месяца назад

    thanks for such a simple and detailed explanation

  • @samirgawas
    @samirgawas Год назад +1

    You made it simple! thanks🙏

  • @kunalchaudhary6165
    @kunalchaudhary6165 6 месяцев назад +2

    @Composable
    fun Counter() {
    var count = remember { mutableStateOf(0) }
    val key = count.value % 3 == 0
    LaunchedEffect(key1 = key) {
    Log.d(tag = "Counter", msg = "Current count: ${count.value}")
    }
    Button(onClick = { count.value++ }) {
    Text(text = "Increment count")
    }
    }
    Sir intially count ki value = 0 thi log.d mai print hogyi uske baad button click hua count ki value =1 hogyi statement false hogyi launched effect bi nhi chlega
    Toh log.d mai count =1 kese aya or same jab 3 hui count ki value uske baad 4 hogi condition false hogi tab bi count 4 print hua
    Dekh jaye toh
    Count initial 0 tha log mai 0 aya
    Uske baad button click hua count increment hua but post increment ha toh phle count ki value use hogi uske baad increment ho jyega toh count = 0 he gya second bar bi or vo true hogyi lekin print count = 1 hua ?

    • @aviiraj_sharma
      @aviiraj_sharma 10 дней назад

      Jab bhi Key ki value change hogi tab hi ander ka code execute hoga bhalehi wo TRUE --> FALSE change ho ya FALSE --> TRUE .

  • @PurelyAndroid
    @PurelyAndroid Месяц назад +1

    bring back the series.

  • @SumitStar24
    @SumitStar24 Год назад +1

    Very good explanation.. 👍👍👍

  • @curiousguy30
    @curiousguy30 Год назад

    explained very well.

  • @udaysharma5228
    @udaysharma5228 Год назад

    Easy and to the point!

  • @PrashantSingh-d97
    @PrashantSingh-d97 Год назад

    It was so simple to understand 😊

  • @ravikantgupta4074
    @ravikantgupta4074 7 месяцев назад

    well explained.

  • @iampradeephr
    @iampradeephr Год назад

    Beautiful explanation... 🔥

  • @rishikeshsingh9946
    @rishikeshsingh9946 Год назад

    ❤❤❤❤❤ awesome

  • @ChocoByte
    @ChocoByte Год назад +1

    Bhaiya, when will next video will come?

  • @khanra17
    @khanra17 Год назад

    As always 🎉

  • @RahulAgrawal-s1t
    @RahulAgrawal-s1t 7 месяцев назад

    but here how come 1 and 4 are getting printed? 4%3 ==0 toh false hai na?
    then how it prints 4 similarly 1%3==0 is false still it printed 1?
    Can u please explain this?

    • @FaadCode
      @FaadCode 7 месяцев назад +1

      Bhai AAP smje nhi yaha pr key value change hone se laucheffect work karta h .
      Why it work :
      3%3 ==0 mean true
      4%3== 0 mean false
      To yaha pr key value change Hui na ?? Isliye isne work Kiya . Smje ??

  • @LifeStyle-ht1rv
    @LifeStyle-ht1rv Год назад

    Meri ek problem hai kya app help Kar sakte hai

  • @TanveerAhmedLangah-h6y
    @TanveerAhmedLangah-h6y Год назад

    Ek chz ki kammi ha. git code ni ha hmare pass. Too much time to implement.

  • @LifeStyle-ht1rv
    @LifeStyle-ht1rv Год назад

    Hello bhai