Better local context management API
pshirshov opened this issue · comments
local.named("context1").from(defs: ModuleDef)
(local: LocalContext) =>
val producer: Producer = local.provide(DIKey.get[Import] -> value, ...)
producer.run / producer.produceFX / ....
The plan produced by the binding must be done in a context inherited from the outer injector.
Would probably need to declare 'context' components for the compile checker:
declareHole[Ctx[F]]