First of all, I am a solid newbie on vuejs, so please keep that in mind :)
I am using vue-router for my single page application, and whenever I do a router.push
or router.link
to change the routes it takes about 5-6 seconds on mobile, in desktop it takes about 1-2 seconds
onSearchInput(service) {
if (this.search === '') {
return;
}
this.$store.commit(mutationTypes.UPDATE_SEARCH, service);
this.$router.push('/list');
},
This is one of my use-cases where, whenever something is entered on an input box a $router.push
is called, pretty simple, but this takes about 5-6 seconds (sometimes more) in mobile, in desktop takes 1-2 seconds to change the route.
I am wondering if there are some ways to decrease the time it takes to change the route. I am using vue 2.5.2