#helpq

15 messages · Page 1 of 1 (latest)

quick sierra
#

Why do I send the same request for help twice when I switch routes

silver plinth
#

hard to tell without more code

quick sierra
#

thats in

#

The code in setup loads twice when the route is switched

terse lark
#

it's definitely two requests and not options/get options/post from CORS?

#

does the watch fire twice or what?

quick sierra
#

I have found the reason. It is to add key to nuxtpage, but there will be new problems if key is not added

#

That's what caused it, but I got rid of the key

#

A quick click of a route causes an error message because the route jump has a transition effect

#

deal it,how to do?

paper brook
#

How are you doing the transition? A key is not needed here in my experience

#

You are using this correct? ```js
export default defineNuxtConfig({
app: {
pageTransition: { name: 'page', mode: 'out-in' }
},
})

quick sierra
#

that, two type, nuxtPage is default