Join Slack
Powered by
In Compose performance article there is suggestion...
# compose
p
PHondogo
10/19/2022, 6:53 PM
In Compose performance article there is suggestion to defer state reads using lambdas. Why not to pass State and defer call to State.value?
o
Oliver.O
10/19/2022, 7:31 PM
You can do that as well. Lambdas are just a more universal way to do it.
z
Zach Klippenstein (he/him) [MOD]
10/19/2022, 8:02 PM
Lambdas are more flexible - you can do calculations in them, pass them easier in tests, etc
2
Views
Open in Slack
Previous
Next