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

Unrelated view is mounted

$
0
0

I’m using Ionic v5 Vue for a simple app.

{
  path: '/account',
  component: () => import('@/views/Account.vue'),
},
{
  path: '/invoice',
  component: () => import('@/views/Invoice.vue'),
},

And then in each component I do async stuff onMounted and also each component has ion-back-button to take the user back to dashboard.

The issue I’m having is that if I visit /account, go back and then go to /invoice the account is also mounted. I confirmed it by console logging from onMounted of /account.

What am I doing wrong?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48977

Trending Articles



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