What if I have 2 services in different packages that use each other’s service which causes a circular import. How to prevent this problem in this structure?
I believe that if two packages are so coupled they should probably be merged into one. You may need to refactor your packages to address this scenario.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What if I have 2 services in different packages that use each other’s service which causes a circular import. How to prevent this problem in this structure?
I believe that if two packages are so coupled they should probably be merged into one. You may need to refactor your packages to address this scenario.