Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70433

IonRouterOutlet

$
0
0

@Ab20 wrote:

Hi,

I’m using the ionic react tabs template for my project. I’ve created 5 routes and out of 5 in my two components, they call APIs on componentDidMount and componentWillRecieveProps.

Now the issue is IonRouterOutlet is not unmounting components on switching between tabs so it’s calling other components API calls. How can I prevent this? can we change the default behaviour of IonRouterOutler so it will unmount the previous component on the switch?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70433

Trending Articles



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