Closed MartinP7r closed 1 month ago
Try...
extension Container: AutoRegistering {
func autoRegister {
accountLoader
.register { AccountLoader() }
.scope(.cached)
...
}
}
thank you for the hint!
Hi 👋🏼
When using the modular approach you outlined in your documentation, how would one set a scope when actually registering the dependency inside the main app module?
I only found a way to use a default scope in that case, no per-dependency way of doing it.