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