We have a scenario where we are required to create components dynamically within each other. We have followed a approach for creating our dynamic components, wherein we have CreateDynamicComponent service that does the job for us. We have component A which requires component B to be created dynamically and B which requires A to be created dynamically this is resulting into a warning thrown by Webpack which states that circular reference exists. I want to understand if these warnings can have negative impact. What I understand is circular dependencies create problems if instantiation order of dependent classes are not a correct order. In our case we are just the importing the components and adding to DOM using _ComponentFactoryResolver. _Would it be a good idea to fix it creating one more component which acts as parent at the top which takes care of dynamic component creation. What would the best solution to mitigate this ?
No responses yet.