#Watch Route change delay

2 messages · Page 1 of 1 (latest)

sharp sluice
#

Hello,

I'm trying to display a "loader" as soon as a internal NuxtLink is triggered, but i have some huge delay sometime.
Here is what i'm using to detect the route change :
watch(() => route.path, () => {
...
}, {deep: true, immediate: true})

You can test the issue here : https://vision-ai-git-develop-glegenty-s-team.vercel.app/

Is there a better approach?

thank you!

dire heath