Android Jetpack Compose State Concept - Hoisting & Unidirectional Flow | CheezyCode Hindi

preview_player
Показать описание
Learn Jetpack Compose in Android. Learn how state works in Jetpack Compose with a simple example that implements a counter functionality. Learn how Mutable State triggers UI updates in Jetpack Compose. Jetpack Compose works on Observable State that emits new UI whenever it changes. Learn what is state hoisting in Compose along with unidirection flow of data and events. Data flows downwards whereas events flow upwards.

Learn what is difference between Remember and RememberSaveable with example. Learn how rememberSaveable saves your value using Bundle object in Android. Bundle objects are used when any configuration changes happen such as Rotation. To store values across rotations - rememberSaveable is used. For custom object stored inside state object, parcelable objects are required. To make an object parcelable - implement Parcelable Interface. Although as a best practice, ViewModels are used to store state object. Learn step by step on how to use these Composable functions along with the best practice. Everything is explained in Hindi (हिन्दी)

Topics covered -
1. What is State Object? mutableStateOf example
2. remember vs rememberSaveable
3. State Hoisting with Example
4. Unidirectional Flow in Jetpack Compose
5. Stateless vs StateFul Composables.

Kotlin Flows Playlist -

Jetpack Paging Tutorial -

Complete Dependency Injection Playlist Link -

Complete Android Architecture Components Playlist -

Beginner series in Android Playlist (Hindi) -

Kotlin Beginners Tutorial Series -

For more info - visit the below link

We are social. Follow us at -
Рекомендации по теме
Комментарии
Автор

This channel is a life saviour for aspiring Indian android developers ❤ Keep the good work going ❤

tuhinguha
Автор

Previous video ki practice kar ke mai yaheen fasa tha... is hi video me answer mil gya 😄

LinuxPeSharmaJi
Автор

Best explanation. Love from Nepal<3

ManishBhusal
Автор

Thank you for the video!
I have one question. Whether the composable depends upon a normal variable or the value of a state, it eventually both are normal variables. If we share the state itself, it would make sense that it is observing the state. How is it then reacting to the changes made in state values?

nimeshluhana
Автор

Great, Great, Great teacher... Love from Pakistan.. Kindly add intermediate level canvas + drawing in this course. It will enhance the course.

kingmarwat
Автор

What is the purpose of removing the onClick from the button and passing a lambda instead?
I mean it woukd still work on the passed count variable, right?

nimeshluhana
Автор

Okay, So the remember is something like the static variable of composable scope, Right?

RakeshDiwan-rd
Автор

Nice work Sir, Keep it cheezy always !

satyamchoudhary
Автор

just amazinf explaination sir best content on youtube

piyushkhandelwal
Автор

Is there any global state management thing like in react ?

abdulwahabgcs
Автор

Sending Events Up is not clear to me.. if Multilevel Compose functions are used like One in another funtion.

RahulGupta-ejdi
Автор

Very clear and to the point. Thank you

trickydotworld
Автор

Thanks for this playlist *#CheezyCode* 💜

shubhamshinde
Автор

How do we achieve responsive of ui across all screens types using jetpack?

babraksohail
Автор

5:07 why do we use 'by' with remember{} then?

sadiquereyaz
Автор

But in the last video you said we don't need to depends one another it doest not maintane sequence.

DeepakSingh-kzcf
Автор

bhai can't we just use mutable state as argument and parameter instead of the value, what are the consequences of that?

ronny
Автор

value is not getting lost if rotate the screen and use only remember. it's working.

sudhanshusharma
Автор

Sir kya gpt-4 will replace fresher jobs in android developer?

jhantudas
Автор

When compared to apps with XML, do apps with compose UI less in size?

mohammadtaqi