How can I access stringResource inside LaunchedEffect block?
z
Zach Klippenstein (he/him) [MOD]
11/01/2021, 5:21 PM
You can't call that function inside an effect because it's a composable. You can get the resource outside the effect using this function, or get the context from
LocalContext
and use the regular methods to load the resource in your effect.