Jetpack Compose - produceState & derivedStateOf Examples | Side Effect Handlers | CheezyCode Hindi

  Рет қаралды 6,790

Cheezy Code

Cheezy Code

Жыл бұрын

Learn Jetpack Compose in Android. In this video, learn what is produceState in Jetpack Compose, how to use produceState with a simple example. It is a syntactial sugar over launchedeffect and uses LaunchedEffect behind the scenes. Learn how to animate an image using produceState. This is a handy utility method to combine state and its asynchronous operation to update its value. We have covered one example of how to use this for animating a simple image. It comes handy when we want to use LiveData or Flow in composable functions.
Learn derivedStateOf in Compose with a simple example. As its name suggests, you can use derivedStateOf to calculate new state based on the existing state values. Learn how to use this function to compute new state value. Simple example of using derivedStateOf is also covered in this video. Learn how to define composables using best practices. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Need of produceState.
2. produceState example - creating a animated loader
3. derivedStateOf example in compose
4. Complete Side Effect handlers in Compose
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

Пікірлер: 44
@codewithsheri
@codewithsheri 16 күн бұрын
Lot of support and Love from Pakistan❤
@mubaraknative
@mubaraknative Жыл бұрын
Bro i am a Android developer from past experience of more than 4yrs of experiment your all course are excellent i will suggest my student to watch your video and you need to update this course at the end.
@ChocoByte
@ChocoByte Жыл бұрын
Waiting for next video ..
@sumitray5138
@sumitray5138 Жыл бұрын
Waiting and checking every day for new video....Please sir try to upload videos every week because I learn every thing from your videos in android . I watch each & every video your playlists .And like every video. So please countiue this series I and many more still waiting. because we relate and understand your content😢😢😢😢😢😢
@CheezyCode
@CheezyCode Жыл бұрын
Uploaded 🤘🏻
@shubhamshinde4042
@shubhamshinde4042 6 ай бұрын
Well explained. Thanks 💜♥
@roymathew3310
@roymathew3310 10 ай бұрын
You are the best 🙂
@KalpeshDoru-hn6oo
@KalpeshDoru-hn6oo Жыл бұрын
really awesome explanation thank you
@rizwansworld
@rizwansworld Ай бұрын
Thanks man
@tinkusony90
@tinkusony90 Жыл бұрын
Informational video really ✨🔥🔥✨
@CheezyCode
@CheezyCode Жыл бұрын
Thank you 🤘
@joelposhapir3737
@joelposhapir3737 Жыл бұрын
We are eagerly waiting to your video...
@samirgawas
@samirgawas Жыл бұрын
Salute🙋‍♂thanks!!
@muhammadusman5179
@muhammadusman5179 Жыл бұрын
Good explanation ❤
@learner8362
@learner8362 Жыл бұрын
Love you sir ❤
@MrRahulmalik
@MrRahulmalik Жыл бұрын
Awesome Stuff!!! please keep making videos on Compose in depth from basic to advance. also safe to assume derivedstateof is similar to MediatorLiveData?
@ChocoByte
@ChocoByte Жыл бұрын
Live data, flows ? Will you cover this topics with compose in upcoming videos?
@SumitSharma-og6qp
@SumitSharma-og6qp Жыл бұрын
Multi module architecture, kotlinDSL #topic me video banaoo
@ChocoByte
@ChocoByte Жыл бұрын
Please make a tutorial for AWS.
@user-lg2wz5uz1s
@user-lg2wz5uz1s Жыл бұрын
Hi , may nay android studio update kiya hai aur ab may room database use krna hai update kay bad error jaan nhe chur rhi kiya kre kapt kaa koi masla hai is kaa sulotion kya hu sakta hai
@NiteshSingh-bv9lu
@NiteshSingh-bv9lu Жыл бұрын
Hello cheezy code i am facing 1 issue when i doing unit testing insert method with room database or viewmodel please can you help me .
@hdkloh6857
@hdkloh6857 7 ай бұрын
Derived State is similar to MediatorLiveData ?
@rishikeshsingh9946
@rishikeshsingh9946 Жыл бұрын
❤❤❤❤
@CheezyCode
@CheezyCode Жыл бұрын
😀
@pranatpraveer2755
@pranatpraveer2755 Жыл бұрын
I have watched most of your videos but not getting any good opportunity as an android developer role can you please help me
@user-jw9zp1oy9x
@user-jw9zp1oy9x Жыл бұрын
Hey @CheezyCode, when will you start uploading further videos like navigation framework, modern architecture etc...
@CheezyCode
@CheezyCode Жыл бұрын
Yes bro will do it soon
@divyanshuchauhan114
@divyanshuchauhan114 Жыл бұрын
sir please can you make a paid course for android development?
@ChocoByte
@ChocoByte Жыл бұрын
LaunchedEffect only gets called on initial composition and whenever the key changes, what about produceState then ? what will happen to code inside producer lambda? Will it run on recomposition or not?
@CheezyCode
@CheezyCode Жыл бұрын
No it won't run on recomposition...aree ek simple sa rule hai apne mann mei baitha lo...koi bhi aisa code jo ek baari run karna hai ya kuch event pe toh usko side effect handler pe karege.. Side effect Handlers ke liye options hai - launched effect, rememberCoroutineScope and disposable effect Produce state is a wrapper on launched effect. It works exactly same as launched effect bas likhne ka tareeka alag hai...hope this helps
@CheezyCode
@CheezyCode Жыл бұрын
Isme bhi key ka concept hai wo cover nahi kiya hai...initial value jo pass kari hai produce state mei uske baad comma separated keys bhej skte ho...keys mei ja bhi change hoga toh producestate dobara call hoga
@ChocoByte
@ChocoByte Жыл бұрын
@@CheezyCode okkk thanks a lot bhaiya !
@user-hf7qy5su6w
@user-hf7qy5su6w Жыл бұрын
bhaiya ek barr composes se ye btado how to use exoplayer to play video in composes without URI. Instead we save our video in raw or assest folder. KZfaq pe kahi se isspe help nhi mil ri
@ChocoByte
@ChocoByte Жыл бұрын
Is compose series completed ?
@CheezyCode
@CheezyCode Жыл бұрын
Basics completed... projects pending hai
@ChocoByte
@ChocoByte Жыл бұрын
@@CheezyCode okkkk, Thankyou Sir. Love Your Content. Please Make a tutorial for AWS too
@bhoomivaghasiya2794
@bhoomivaghasiya2794 11 ай бұрын
Well explained! I have tried to implement this in my code and derivedStateOf is giving this error : Creating a state object during composition without using remember. How can I solve this?
@CheezyCode
@CheezyCode 11 ай бұрын
remember { derivedStateOf() } Did you follow the same steps? I have used derivedStateOf for states that are using remember.
@bhoomivaghasiya2794
@bhoomivaghasiya2794 11 ай бұрын
In your code it's only val message = derivedStateOf{...}. you can see that at 7:30@@CheezyCode
@bhoomivaghasiya2794
@bhoomivaghasiya2794 11 ай бұрын
I have used the same code as yours@@CheezyCode
@VillagerYouTuber
@VillagerYouTuber 9 ай бұрын
@@bhoomivaghasiya2794 use remember in tableof variable
@Mohit-gb9dv
@Mohit-gb9dv Жыл бұрын
Hmn
@piyush288
@piyush288 Жыл бұрын
finished?
@heavenlife5619
@heavenlife5619 Жыл бұрын
*Bhai tumhare maze hai itna kuch aata hai tumhe kisi reason se company leave bhi kr dete ho to doosri company me aasani se lag jaoge...but yha ulta hisaab hai.*
Auto-Permission Accounts using Account Groups
2:23
Sprinklr
Рет қаралды 9
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3 МЛН
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 90 М.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 74 М.
derivedStateOf VS. remember(key) - THIS is Really the Difference 🤯
14:46
BasicTextField2 - Everything You Need to Know 💻
14:23
Philipp Lackner
Рет қаралды 14 М.
Finger Heart - Fancy Refill (Inside Out Animation)
00:30
FASH
Рет қаралды 29 МЛН