Under what circumstances should I use `Modifier.co...
# compose
c
Under what circumstances should I use
Modifier.composed()
? I have a custom modifier that is fairly general purpose (like
transformable()
but with slightly different behaviour). I see
transformable()
uses
composed()
. Is this just an optimization? Thanks for any tips!
a
Only when you need to use composable functions (such as
remember
) in your modifier.
👍 1
z
Or when your modifier needs to read composition locals
👍 1