4 Ways To Debug Recomposition in Your Jetpack Compose UI!

preview_player
Показать описание

In this video, I will demonstrate four ways to handle recomposition within Jetpack Compose UIs. First, I will show you how to detect recompositions, followed by identifying their sources.

🔗 Links:

=========================
📩 Checkout My 👇

=========================
📩 Sign up for my new newsletter 👇

=========================
Join my Community on Discord 👇

👨🏽‍🏭 Who I am:
I'm Younes Charfaoui, a Software Engineer and an Android Developer. I make videos about Android development, Technology, and productivity for software engineers.

😋 Be My Friend:
Рекомендации по теме
Комментарии
Автор

all looks great with all those methods, can you share something about recomposing functions that has dependency on the click in Buttons that are not straight directly in the same hirarchy, lets say there is a Badge box and its text number depend on how many clicks you actually perform on a button...
but this badgbox is inside the BottomAppBar... so you know BottomAppBar tend to skip recompositions on its items once its composed...

how would you do that?

RealformStudioXR
Автор

So is it necessary to solve every recomposition? For example in this case the text can't be dependent on the function

moaliyou
welcome to shbcf.ru