are there any bad ideas, that you should not use `...
# compose
p
are there any bad ideas, that you should not use
CompositionLocal
for? Would it be a bad idea, to make a provider for
ViewModel
?
a
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