Archie
09/03/2023, 5:19 PMWindowSizeClass
not a CompositionLocal
?Csaba Szugyiczki
09/04/2023, 10:13 AMArchie
09/04/2023, 10:30 AMColton Idle
09/10/2023, 9:25 PMAlex Vanyo
09/11/2023, 5:23 PMCompositionLocal
, you definitely can.
The original concern against providing it in a CompositionLocal
is that would make it too easy to use WindowSizeClass
really deep in the tree, where it’d be better to have a more meaningful parameter or decision.
But admittedly Configuration
is available as a CompositionLocal
so it’s not really a new problem.
How many layers are you having to pass WindowSizeClass
through, where it’s annoying to have to do so?