Questions tagged [vue-router4]
190 questions
0
votes
1 answer
How to prevent authtenticated page flasshing the login page VUEJS 3
I am using vue3 can I ask for some help why is it redirecting to an authenticated page like home, when I refresh the login page will flash. every time I refresh it keeps flashing, how can I prevent this flashing login when I refresh the page or…

jemz
- 4,987
- 18
- 62
- 102
0
votes
0 answers
Watcher on Vue Router Vue3
I'm trying to create a watcher on Vue Route to capt the value changing of a property defined in route meta object.
This is my code in the App.vue file

Mena
- 1,873
- 6
- 37
- 77
0
votes
2 answers
How to solve vue-router Uncaught TypeError?
I am trying to upgrade my project from vue 2 to vue 3. But constantly I getting errors.
This is my new console error:
vue-router.mjs:3499 Uncaught TypeError: Cannot read properties of undefined (reading 'location')
And this is line…

edche
- 636
- 6
- 33
0
votes
0 answers
How to pass props through router link in VUE.JS?
I hope you are having a great day. Actually, I'm curious whether we can pass props through the router link in vue. js or not?
Scenario
Suppose i have two components.
(a) Shop Now (Parent Component) which contains array of products as…

Muhammad Khan
- 85
- 2
- 17
0
votes
2 answers
How to execute vue-router beforeEach ONE time?
I have an annoying situation where I need to hook into every route change to check something. If condition X is true, I need to redirect to the homepage by showing a notice only on that single pageview. So I have the following:
router.beforeEach(()…

Tallboy
- 12,847
- 13
- 82
- 173
0
votes
1 answer
$watch a vue-router change on Vue app instance programmatically outside Vue instance
I have a small package that was built in Vue2 that I'm trying to migrate to Vue3 now where a route is being watched programmatically by obtaining the App instance within vue-router and it's being watched like so:
function myPluginName(router) {
…

CaptainCarl
- 3,411
- 6
- 38
- 71
0
votes
1 answer
Display a specific route in a different router-view
I've got a Vue 3 app with Vue Router 4 and I want to achieve this:
//This is where login would be
//Everything else
…

Filip
- 855
- 2
- 18
- 38