What is the recommended way to avoid calling Andro...
# compose
r
What is the recommended way to avoid calling Android APIs from a
@Preview
? For example
rememberPermissionState
has calls to
Context
or when remembering some specific Android API like MediaPlayer. Should those be provided through a
CompositionLocalProvider
at the root level or is there some other way to “fake” these?
This has been asked before but without a definitive answer: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1632521048463600
r
Awesome, thank you