Jetpack Compose - RememberUpdatedState | Side Effect Handlers | CheezyCode Hindi

  Рет қаралды 7,070

Cheezy Code

Cheezy Code

Жыл бұрын

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

Пікірлер: 16
@nikit410
@nikit410 Жыл бұрын
Teaching is an art and you are master of this art.
@muhammadusman5179
@muhammadusman5179 Жыл бұрын
Such a amazing KZfaq 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.
@CheezyCode
@CheezyCode Жыл бұрын
🤘🏻
@rizwansworld
@rizwansworld Ай бұрын
Thanks bhai. Taught this topic like it was butter.
@mahboobahmadofficial1
@mahboobahmadofficial1 Ай бұрын
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
@shubhamshinde4042
@shubhamshinde4042 7 ай бұрын
Well explained. Thank you so much ♥
@jarnailsingh-yo6os
@jarnailsingh-yo6os Жыл бұрын
you are doing great job Bro.
@ChocoByte
@ChocoByte Жыл бұрын
Awesome video! Really enjoyed it. When's the next one dropping?
@CheezyCode
@CheezyCode Жыл бұрын
Tomorrow 🤞
@divyanshbarar3840
@divyanshbarar3840 7 ай бұрын
damn good explaination !!!!!
@nefafilmstudio5575
@nefafilmstudio5575 6 ай бұрын
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 Жыл бұрын
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
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 4,9 МЛН
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 29 МЛН
Higher Order Functions | Kotlin | Part 1 |  Hindi
10:10
PURI'S VLOGS
Рет қаралды 430
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 90 М.
Advanced state and side effects in Jetpack Compose
41:21
Android Developers
Рет қаралды 34 М.
Kotlin Shared Flow Tutorial | Kotlin Flows | CheezyCode - Hindi
11:03
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 4,9 МЛН