Hey :wave: I have a question regarding Annotations and scoping. I have some modules defined like tha...
m
Hey ๐Ÿ‘‹ I have a question regarding Annotations and scoping. I have some modules defined like that, with a dependency that come from a specific scope. I havenโ€™t found a way of doing it with Annotations :/ Is it possible to achieve? ๐Ÿค”
Copy code
val myModule = module {
    scope(named(scopeName)) {
        scoped { Foo() } 
    }

    viewModel {
        ViewModel(
            regularDeps = get(),
            foo = getScope(scopeName).get(),
        )
    }
}
๐Ÿ‘‹ 1
a
yes good question, not supported in current version ๐Ÿค”
need to recheck all about Scope in Koin Annotations
m
Interesting! Thanks for the response. I would love to have the support in the future!
a
clearly ๐Ÿ™‚