You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Don't call Locale.getDefault() in a @Composable context, use LocalConfiguration.current.locales instead."
Calling Locale.getDefault() won't recompose if the locale changes (Configuration change),
Also, LocalConfiguration.current.locales works better for previews and tests.
The text was updated successfully, but these errors were encountered:
Add a rule for something along the lines of:
"Don't call
Locale.getDefault()
in a@Composable
context, useLocalConfiguration.current.locales
instead."Calling
Locale.getDefault()
won't recompose if the locale changes (Configuration change),Also,
LocalConfiguration.current.locales
works better for previews and tests.The text was updated successfully, but these errors were encountered: