Can we have a modifier that sets a CompositionLoca...
# compose
g
Can we have a modifier that sets a CompositionLocal for the scope of the composable? How can I achieve something like that?
🤔 1
Trying to not have an extra level of indentation per set of a CompositionLocal, if that can make any sense...
e
I don't think it makes much sense. a hypothetical modifier can't affect reads early enough for
Copy code
Modifier.locals(LocalContentColor to ...).background(LocalContentColor.current)
to work
g
Thanks 👍