Join Slack
Powered by
Hello! How to provide dependencies in modules whic...
# koin
d
Denys
04/08/2019, 6:31 PM
Hello! How to provide dependencies in modules which depend on the entities that are dynamically initialized in view, f.e. callbacks
a
Artem Kopan
04/08/2019, 6:39 PM
Hi, you can try to use this:
https://insert-koin.io/docs/2.0/documentation/reference/index.html#_injection_parameters
In my view, it’s a bad idea to provide callbacks as a constructor argument. Better to use getter/setter
Open in Slack
Previous
Next