JS
Yes, lambdas should do the trick. I've also read this sentiment about passing State as a param in some online forums too, but didn't find any concrete reasoning. If you have any references from credible sources please do share!
ReplyArticleDec 12, 2024Benchmark Insights: Direct State Propagation vs. Lambda-based State in Jetpack Compose