There is file called read.js and resolveJoins.js.
Both are utility file that require each other.
Right, I'm requiring them when I need it as Modules are cached after the first time they are loaded.
What is best practice to do Recursive require
Mobile and Web Developer
Sandeep Panda
co-founder, Hashnode
There are two ways to manage circular dependencies. The first one is deferring invocation of dependencies until runtime - which is what you are doing now. The second one is "Dependency Injection". Here is an article that demonstrates both the concepts.