Jetpack Compose - RememberUpdatedState | Side Effect Handlers | CheezyCode Hindi
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 -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIPJ84lXQSHMn8P-0J8jW5YT
Jetpack Paging Tutorial -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIPci119n2gt_kq1GU-PAYRk
Complete Dependency Injection Playlist Link -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd
Complete Android Architecture Components Playlist -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2
Beginner series in Android Playlist (Hindi) -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU
Kotlin Beginners Tutorial Series -
https://www.youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G
For more info - visit the below link
http://www.cheezycode.com
We are social. Follow us at -
Facebook - http://www.facebook.com/cheezycode
Twitter - http://www.twitter.com/cheezycode
Instagram - https://www.instagram.com/cheezycode/
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Jetpack Compose - RememberUpdatedState | Side Effect Handlers | CheezyCode Hindi», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.