Jetpack Compose - RememberUpdatedState | Side Effect Handlers | CheezyCode Hindi

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • Learn Jetpack Compose in Android. In this video, we'll be discussing about RememberUpdatedState composable. Although it is not a side effect but as a utility function to provide the updated value of the state. While running an asynchronous operation, we want to have updated value of the state to be used across. For this we need, this function that will provide the latest value of the state. We have used an example here where coroutine is launched using Launched Effect. In this coroutine scope, we executed an asynchronous task - once the task is completed we might need to use the state value. There is a possibility of using state value in this case - we need to have some way to get the latest value of the state. For this we need this special function - rememberUpdatedState. It will always provide the latest value of the state.
    Although Launched Effect can be made to re-trigger if we change the key but running a computation intensive asynchronous function will be an overhead. To prevent that from happening we can use this function and still get the latest value of the state. In simple words, to get the updated state after the asynchronous operation, we use this function in jetpack compose. Learn how to define composables using best practices. Everything is explained in Hindi (हिन्दी)
    Topics covered -
    1. RememberUpdatedState in Jetpack Compose.
    2. Launched Effect with RememberUpdatedState example.
    3. Asynchronous Operations in Jetpack Compose as a side effect using Launched Effect.
    4. Examples of RememberUpdatedState with Splash Screen Implementation.
    Kotlin Flows Playlist -
    • Kotlin Flows Tutorials
    Jetpack Paging Tutorial -
    • Android Paging 3 | Jet...
    Complete Dependency Injection Playlist Link -
    • Dagger 2 - Dependency ...
    Complete Android Architecture Components Playlist -
    • Android Architecture C...
    Beginner series in Android Playlist (Hindi) -
    • Android Tutorials Step...
    Kotlin Beginners Tutorial Series -
    • Kotlin Beginner Tutori...
    For more info - visit the below link
    www.cheezycode.com
    We are social. Follow us at -
    Facebook - / cheezycode
    Twitter - / cheezycode
    Instagram - / cheezycode

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

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

    Teaching is an art and you are master of this art.

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

    Such a amazing TH-cam channel for learning android development. I was waiting for playlist on jetpack compose. I am really enjoying this series. Please sir don't stop this series.

  • @rishabhgarg6692
    @rishabhgarg6692 2 หลายเดือนก่อน

    You are the best , clean simple to the point as always
    Waiting for more video on jetpack compose sir

  • @rizwansworld
    @rizwansworld 8 หลายเดือนก่อน

    Thanks bhai. Taught this topic like it was butter.

  • @coder56
    @coder56 3 หลายเดือนก่อน +1

    Ending song is awesome, how can i get that song ?

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

    Well explained.
    Thank you so much ♥

  • @mahboobahmadofficial1
    @mahboobahmadofficial1 8 หลายเดือนก่อน +1

    kia bt hai sir g, i know ek choti si example smjhny ky liye ap kitni effort krty han,,,, but wapis a yn plz ab apna channel grow hony laga tha

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

    Awesome video! Really enjoyed it. When's the next one dropping?

  • @jarnailsingh-yo6os
    @jarnailsingh-yo6os ปีที่แล้ว

    you are doing great job Bro.

  • @2chotti
    @2chotti 4 หลายเดือนก่อน

    Thank you

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

    damn good explaination !!!!!

  • @yogeshkoli8803
    @yogeshkoli8803 5 หลายเดือนก่อน

    We can pass State in parameter directly then why use rememberUpdatestate ???

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

    ok,,, tell me real project kese used kare

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

    Hii brother....
    Recently visited to your channel very interesting....
    Even I dont have any idea about Kotlin...
    Can I start this jetpack compose framework??
    I have learnt about Android using Java...
    Could you please tell me ..

    • @CheezyCode
      @CheezyCode  ปีที่แล้ว +3

      Learn Kotlin first then compose

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

      @@CheezyCode okay. . thanks for your suggestion.....
      Flutter vs Jetpack compose....
      Which one is better now??

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

      @@bhuvanch7797 bhai kaafi companies native walo ko priority deti hai, but flutter developer ke liye bhi kaafi companies hoti hai.

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

      @@ChocoByte bro.... tell me in English... please