2

I'm working on an angular project, every time I reload a page, the constructor and ngOninit() method are called twice, in this case sometimes it gets 2 API calls which will cause problems. This happens only when reloading.

I've checked the template and there is no syntax and other silence error, and I took a reference on this thread, none of the answers could solve my problem. So I think it might be a routing issue? Since this happens in every component.

Besides, I'm not using component-driven architecture.

0 Answers0