Cool video, the LaunchedEffect one was really useful… btw, I want to know if having a preview in every composable reduces performance while developing or increase build times
First of all, thank you for your video Phil, very useful and clear. A question about mistake #1, maybe I go wrong: what if instead of using a lambda, I use delegation instead of assignment of scrollstate, that is using val scrollState by rememberScrollState() instead of val scrollState = rememberScrollState() ? in this way the delegation keep the same MutableState reference, do not create a new state and do not cause recomposition everytime the value of state change because the reference is always the same.
Hi Philipp, I want to join your members-only to be able to watch some members-only videos, however i can't seem to find the join button on your channel page. any help?
A comment on the first mistake. Passing around lambdas can be pretty dangerous in an OOP world, be careful when passing function references to classes and objects as you may introduce memory leaks that can be quite hard to diagnose.
AFAIK the lambda used here is all in compose context so it is safe. It would be bad for example to pass a lambda from the UI to the ViewModel since the UI has a shorter lifespan than the viewModel. This would lead to a memory leak
hello Philipp first of all i wanna appreciate your videos i really enjoy learning with ya secondly im facing a problem with sharing a viewmodel between navhsost children i tried all the solution ( uk stackOverFlow , docs ) but nothing helpful there the navhost keep recreating the viewmodel :( so i really need your help man
we need more videos like this, there is so many mistakes that an android developer can make with jetpack compose
These "Best practices" videos are really helpful 🙇 ...... Please keep them coming!
Great video, please make more like this about tips in Jetpack Compose or common mistakes that you often come across in Compose.
Scam, don't fall for it
Cool transition effect between clips!
Kudos as always, thank you Philipp
Love those performance related videos. Just a short video with three issues I can quickly watch and scan my codebase for.
Scam, don't fall for it
Cool video, the LaunchedEffect one was really useful… btw, I want to know if having a preview in every composable reduces performance while developing or increase build times
yeah, sometimes it take a long time to render a UI. i think for the further, android teams will be aware with this problem.
Scam, don't fall for it
First of all, thank you for your video Phil, very useful and clear. A question about mistake #1, maybe I go wrong: what if instead of using a lambda, I use delegation instead of assignment of scrollstate, that is using val scrollState by rememberScrollState() instead of
val scrollState = rememberScrollState() ? in this way the delegation keep the same MutableState reference, do not create a new state and do not cause recomposition everytime the value of state change because the reference is always the same.
Thank you Phil, you helped me. I was guilty for point #2.
More videos like this, please❤❤
Thanks a ton, you save my apps😁, after seeing this video. i'll check again with my compose codes and follow these guides. thanks brow😁
Scam, don't fall for it
Awesome video! Thanks
What hotkey did you use for moving if(isLoggedIn) to under LuancheEffect scope? 7:48
Hi Philipp, I want to join your members-only to be able to watch some members-only videos, however i can't seem to find the join button on your channel page. any help?
Happy holidays and I Love this video. Please do a tutorial on nested scrolling if can.
Scam, don't fall for it
Good content doesn't need such clickbait titles. And I want to stress that I find the content on this channel very helpful and high quality.
Scam, don't fall for it
Thanks for these tips :D
Merry Christmas 🎉
Scam, don't fall for it
Thanks@@yury4224 . I wonder when TH-cam will fix this
is layout inspector working on dolphin ? Select process > Pixel 4 Api 31 > No debuggable process detected on me
Thank you for these tips it was very helpful❤️
Scam, don't fall for it
thanks for the amazing content
Scam, don't fall for it
@@yury4224 hhaha yes
thanks btw
what is your pc configuration? my emulator is very slow.
A comment on the first mistake. Passing around lambdas can be pretty dangerous in an OOP world, be careful when passing function references to classes and objects as you may introduce memory leaks that can be quite hard to diagnose.
Could you share an example or article explaining this? 🤔
AFAIK the lambda used here is all in compose context so it is safe. It would be bad for example to pass a lambda from the UI to the ViewModel since the UI has a shorter lifespan than the viewModel. This would lead to a memory leak
Love ur Videos. Please do an alarm clock app next
Scam, don't fall for it
Already reported but TH-cam is slow
Hey philipp, does the same apply float state values like for example a detecttransformgestures float which changes a lot overtime? 1:40
Scam, don't fall for it
Are able to use JetPack Compose in android part of KMM?
Yes
you are the best
Scam, don't fall for it
hello Philipp
first of all i wanna appreciate your videos i really enjoy learning with ya
secondly
im facing a problem with sharing a viewmodel between navhsost children i tried all the solution ( uk stackOverFlow , docs ) but nothing helpful there the navhost keep recreating the viewmodel :(
so i really need your help man
Scam, don't fall for it
Hey Philipp. How did you get that UI for Android Studio?
Scam, don't fall for it
Our team did the mistake number 3 and the app was like freaking itself, I had to debug it and move it to side effect
Scam, don't fall for it
@@yury4224 You deserve a special place in Heaven
this is the comment side of things
💪💪💪👏👏👏👏👏👏👏👏👏
Scam, don't fall for it