Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ngoninit being called twice on web refresh and sometimes in mobile app

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>