Question: When creating a module definition Koin c...
# koin
o
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
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.
This often (not always) holds true for passing parameters to plain functions as well.
o
Have done so already. Just needed to know if this was a limitation (which it seems like it is). Thanks!