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

  Рет қаралды 17,509

Cheezy Code

Cheezy Code

Жыл бұрын

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 -
• 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

Пікірлер: 45
@tuhinguha434
@tuhinguha434 6 ай бұрын
This channel is a life saviour for aspiring Indian android developers ❤ Keep the good work going ❤
@satyamchoudhary534
@satyamchoudhary534 Ай бұрын
Nice work Sir, Keep it cheezy always !
@ManishBhusal
@ManishBhusal 8 ай бұрын
Best explanation. Love from Nepal
@trickydotworld
@trickydotworld 11 ай бұрын
Very clear and to the point. Thank you
@khanra17
@khanra17 Жыл бұрын
Great example for state hoising
@kingmarwat
@kingmarwat Жыл бұрын
Great, Great, Great teacher... Love from Pakistan.. Kindly add intermediate level canvas + drawing in this course. It will enhance the course.
@piyushkhandelwal1662
@piyushkhandelwal1662 Жыл бұрын
just amazinf explaination sir best content on youtube
@DeepakSharma-zw6ys
@DeepakSharma-zw6ys 24 күн бұрын
ek number
@iampradeephr
@iampradeephr Жыл бұрын
Best Explanation ❤👏
@nageshjatagond4175
@nageshjatagond4175 Жыл бұрын
Great Explanation :)
@shubhamshinde4042
@shubhamshinde4042 7 ай бұрын
Thanks for this playlist *#CheezyCode* 💜
@ChocoByte
@ChocoByte Жыл бұрын
Waiting for next video🙂
@old_school_animation
@old_school_animation Жыл бұрын
Best🙌🏻
@shubhsahu1765
@shubhsahu1765 6 ай бұрын
Thanks a Lot!
@ravikantgupta4074
@ravikantgupta4074 3 ай бұрын
well explained.
@Dibyendu.M
@Dibyendu.M Жыл бұрын
Thank You
@souravsuman636
@souravsuman636 Жыл бұрын
Thank you
@RahulGupta-ej3di
@RahulGupta-ej3di 5 ай бұрын
Sending Events Up is not clear to me.. if Multilevel Compose functions are used like One in another funtion.
@nimeshluhana4796
@nimeshluhana4796 7 ай бұрын
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?
@abdulwahabgcs9748
@abdulwahabgcs9748 5 күн бұрын
Is there any global state management thing like in react ?
@nimeshluhana4796
@nimeshluhana4796 7 ай бұрын
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?
@Mohit-gb9dv
@Mohit-gb9dv Жыл бұрын
👍👍
@babraksohail6965
@babraksohail6965 3 ай бұрын
How do we achieve responsive of ui across all screens types using jetpack?
@user-mn9qy3uq2d
@user-mn9qy3uq2d 6 ай бұрын
Okay, So the remember is something like the static variable of composable scope, Right?
@ManishKumar-uc1rw
@ManishKumar-uc1rw 3 ай бұрын
9:30 mast topic start hua h
@manavmittal36
@manavmittal36 Жыл бұрын
@sadiquereyaz
@sadiquereyaz 29 күн бұрын
5:07 why do we use 'by' with remember{} then?
@1AshfaqKhan
@1AshfaqKhan Жыл бұрын
❤❤❤
@DeepakSingh-kz3cf
@DeepakSingh-kz3cf 2 ай бұрын
But in the last video you said we don't need to depends one another it doest not maintane sequence.
@shubhamsawant9534
@shubhamsawant9534 2 ай бұрын
bought course on udemy and understanding those concepts on this channel 😂
@sudhanshusharma9159
@sudhanshusharma9159 5 ай бұрын
value is not getting lost if rotate the screen and use only remember. it's working.
@ronny3060
@ronny3060 5 ай бұрын
bhai can't we just use mutable state as argument and parameter instead of the value, what are the consequences of that?
@spyboyyyyy
@spyboyyyyy Жыл бұрын
Sir HorizontalPager() lag karta hai . any solution??
@mohammadtaqi4051
@mohammadtaqi4051 Жыл бұрын
When compared to apps with XML, do apps with compose UI less in size?
@udaysharma5228
@udaysharma5228 Жыл бұрын
Actually, for composable, you do need .kt files to be made where you write your composable functions that will take space for sure. Now it depends on the structure of UI in both cases how much space it takes.
@vikrantsaini437
@vikrantsaini437 11 ай бұрын
You will also have to include the dependancies for Compose, which would take some space and separate test framework dependancy as well for Compose if you need to test the compose UI.
@narayandhingra6921
@narayandhingra6921 3 ай бұрын
ek hi ❤ hai, kitni baar jeetoge?
@jarnailsingh-yo6os
@jarnailsingh-yo6os Жыл бұрын
🙏
@CheezyCode
@CheezyCode Жыл бұрын
Thank you 😊
@jhantudas6684
@jhantudas6684 Жыл бұрын
Sir kya gpt-4 will replace fresher jobs in android developer?
@akarshmittal9601
@akarshmittal9601 Жыл бұрын
In my Opinion, Not at current level of GPT-4. It is kinda noob at current state 🤣😂
@bilalaslam8845
@bilalaslam8845 Жыл бұрын
Please share repo link.
@salmannaseer7652
@salmannaseer7652 Жыл бұрын
is Unit Void?
@CheezyCode
@CheezyCode Жыл бұрын
Yes from Java perspective..but it is a type in Kotlin
@rishikeshsingh9946
@rishikeshsingh9946 Жыл бұрын
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 43 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 14 МЛН
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 74 М.
State Hoisting in Jetpack Compose
12:42
Android Casts
Рет қаралды 1 М.
THIS Compose-State Mistake Leads to Problems In Your Code
7:58
Philipp Lackner
Рет қаралды 40 М.
You're Collecting Your Flows Wrong In Compose | THIS Is Why
11:35
Philipp Lackner
Рет қаралды 27 М.
State Hoisting with Jetpack Compose
10:29
CodingWithMitch
Рет қаралды 12 М.
Full Guide to Delegation in Kotlin  - Android Studio Tutorial
18:10
Philipp Lackner
Рет қаралды 67 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН