How do I write page code without repetition? – nuxt 3
Now if I had a page /test
:
global pageTransition hooks not working – Nuxt 3
I want to run pageTransition
hooks for each page of the nuxt.config.ts
file, but the hooks do not work!!
navigateTo not working in plugin – nuxt 3
The problem in short: navigateTo
works in defineNuxtRouteMiddleware
but it does not work in defineNuxtPlugin
. I do not want to run this code on every page only in or entering the site
disable global middleware from some pages – nuxt 3
When you set the middleware as global, and let’s say myMid.global.ts
, there are some pages on which I do not want this middleware to work. I searched and found a way using route name “to.name
“, and I want a better way. For example, on the page where I do not want it to work, I put, for example: