How can I stop ngoninit being called twice.
When I am on the home page of my app in the browser and I refresh the page the ngoninit is called twice. This causes my instruction messages to show twice.
If start the app on the login page the ngOnInit for the login page is called twice (no issues here) I log in and then am directed to the home page normally ngoninit is only called once.
Sometimes this happens on the mobile app too. Possibly after being inactive for some time.
3 posts - 2 participants