Is there a way to connect LocalProvider with the K...
# compose
p
Is there a way to connect LocalProvider with the Kotlin FLow? I am trying to change dynamically the LocalProvider with DataStore flow.
a
CompositionLocalProvider(LocalValue provides flow.collectAsState().value)
should work.
👍 1
p
Awesome. It is working! I just needed to add initialValue in collectAsState(initialValue = “”)