Question:
When creating a module definition Koin complaints when having more than 5 parameters. Is this a limitation in the current version? If so; Why?
s
streetsofboston
10/29/2019, 1:24 PM
You have to put the limit at some number 😀
All kidding aside, if you find yourself using more than 5 parameters, wrap them in a (data) class and provide only 1 parameter instead, being instances of that (data) class.
streetsofboston
10/29/2019, 1:25 PM
This often (not always) holds true for passing parameters to plain functions as well.
o
Ove Stoerholt
10/29/2019, 7:45 PM
Have done so already. Just needed to know if this was a limitation (which it seems like it is).
Thanks!