I'm trying to fully understand `composed` modifier...
# compose
h
I'm trying to fully understand
composed
modifier that is used for custom stateful modifiers. My first question is what are the limitations around it? It's a compose function so it lets me call any other composable function that may or may not emit widgets. For example it makes sense to use
remember
but it's a little strange calling
Box
.
a
You probably won't like the results of calling composables that emit UI. It was our intention to prohibit doing so at the compiler plugin level but we haven't gotten around to that kind of thing yet
At the moment I'd call it undefined behavior
👍 1
z
prohibit doing so at the compiler plugin level
👀 👀 👀
a
We have some thoughts about propagating the tree type of the composition and inferring it. Composed modifiers would be something like requiring a tree type of
Nothing
(or applier type)
z
OMG omg omg yes please