Рет қаралды 12,364
Learn Jetpack Compose in Android. Learn what are side effects in Jetpack Compose. Learn how to handle side effects in controlled and predictable manner. Running code inside composable have unpredictable behavior because composable can run multiple times and you do not have control over it. Side Effects are the changes that effects the app state that are outside the scope of composable function. We want to run side effects in controlled manner that results in predictable behavior. For this we have different Effect Handlers in Jetpack Compose. Launched Effect handler will execute the code in a coroutine scope + will execute code based on the key. It will be called during initial composition and will run whenever key parameter changes.
In this video, I have covered different examples to learn about side effects and how to handle these side effects using LaunchedEffect Handler. Learn step by step on how to define Composable functions along with the best practice. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Side Effects in Jetpack Compose.
2. Recomposition with Side Effects
3. Side Effect Handlers with Example.
4. LaunchedEffect in Jetpack Compose with Example.
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