Hello, I have a question. I have seen that some of...
# compose-desktop
c
Hello, I have a question. I have seen that some of the built-in components in Compose are inline functions. When is it a good idea to make own composable functions inline, when hot?
👀 4
d
Maybe a better question for #compose. I'm not that deep into that stuff, but from my dev perspective I give it a try: When it's a layout composable that places children in a specific way. One indicator might be, that it makes use of a custom
Layout
and
MeasurePolicy
like Box, Row, Column Imho won't happen very often for the typical use cases and stuff that devs do with Compose. Afaik the documentation doesn't mention it and I would say "because it's not something a developer should worry about". Also there is only a VERY limited number of framework Composables that inline and imho that is a good indicator that it's a special case. And box, row, column are for real special composables
☝️ 1