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
Teaching is an art and you are master of this art.
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.
🤘🏻
You are the best , clean simple to the point as always
Waiting for more video on jetpack compose sir
Thanks bhai. Taught this topic like it was butter.
Ending song is awesome, how can i get that song ?
Well explained.
Thank you so much ♥
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
Awesome video! Really enjoyed it. When's the next one dropping?
Tomorrow 🤞
you are doing great job Bro.
Thank you
damn good explaination !!!!!
We can pass State in parameter directly then why use rememberUpdatestate ???
ok,,, tell me real project kese used kare
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 ..
Learn Kotlin first then compose
@@CheezyCode okay. . thanks for your suggestion.....
Flutter vs Jetpack compose....
Which one is better now??
@@bhuvanch7797 bhai kaafi companies native walo ko priority deti hai, but flutter developer ke liye bhi kaafi companies hoti hai.
@@ChocoByte bro.... tell me in English... please