Hello. If i'm not wrong, when declaring components...
# multiplatform
t
Hello. If i'm not wrong, when declaring components with Koin, i remember seeing at the last Android Makers that we could replace all the get() by an expression to avoid typing several get() for dependency injection. Does anyone know the syntax please ? I can't find it online.
Copy code
factory { BuilderViewModel(get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get()) }
a
I suppose you are referring to this, also, this slack has a #C67HDJZ2N channel for this type of questions
t
Thank you. I didn't know about the channel, sorry.
b
not sure if
factoryOf
Will help you here, you have so many params and I think
factoryOf
doesn't support so many dependencies or if so, you will be at least in the upper limit.
t
@Badran Yes, i actually tried and the upper limit is 22 or 23 i don't remember. I would need to refactor and merge use cases but i'll just leave it like that for now. It's useful though when you're within the limit.