Above code makes lint warning me about using derivedStateOf without wrapping it in a remember block. Why is this? - Should I still remember it if I am returning it from a function?
I plan to remember it in the caller composable function scope not in this producer scope
d
Dominaezzz
12/08/2022, 10:56 PM
If you plan to remember it in the caller then
windowSizeInfo()
probably shouldn't be marked composable.
p
Pablichjenkov
12/08/2022, 11:07 PM
Humm, I annotated @Composable because
calculateWindowSizeClass(activity)
is Composable, and the library doesn’t provide a non composy api.
They: