0

I have dynamic routes in my router where I load different content depending on the id params, the problem is that as I visit pages without refreshing the page the memory usage starts to increase with every new page with different params and any event I want to fire fires as much as the pages I visited earlier, how can I completely get rid of the pages visited before which still lives in the background.

import { createRouter, createWebHistory } from '@ionic/vue-router';
import { RouteRecordRaw } from 'vue-router';
import SomePage from '@/views/SomePage.vue';
{
    path: '/some/:id',
    name: 'Some',
    meta:{title:'Some Title',description:'Some Description'},
    component: SomePage
},
1
  • can you provide more details like component code for how to get id from params and load data. Commented Jun 26 at 12:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.