for? Would it be a bad idea, to make a provider for
ViewModel
?
a
Adam Powell
07/18/2021, 5:13 PM
CompositionLocals create implicit dependencies, which generally makes a system harder to use, reason about, or test. For something like a ViewModel I'd avoid it, there just isn't a big enough benefit to that tradeoff over passing them as parameters or leveraging lambda captures