I created ```fun <T> CompositionLocalProvide...
# squarelibraries
t
I created
Copy code
fun <T> CompositionLocalProviderReturnable(
    vararg values: ProvidedValue<*>,
    content: @Composable () -> T
): T {
    currentComposer.startProviders(values)
    val t = content()
    currentComposer.endProviders()
    return t
}
but seems wonky
e
Curious, what do you put in a composition local for a molecule composable? 🤔
t
Right now mostly brainstorming, but looking into opportunities to use Molecule on a backend service. Thinking that potentially putting some request header meta-data into the CompositionLocal to not require manual passing through the layers
e
Molecule on the BE is wild … I like it!
k
We place a platform agnostic implementation of a lifecycle in our composition locals