#Routing. Same page component is not being reused!

10 messages · Page 1 of 1 (latest)

keen dust
#

definepagemeta + key should indeed prevent rerendering. If it does not this might be considered a bug. Do you have a stackblitz showing the key doesn't work? Looks to be fine on my end

plush anchor
#

Did you try setting key in Composition API? Does it really work in your case?

keen dust
#

Yes

plush anchor
#

Also, I am using manual routing. I define all my routes in the app/router.options.js file

#

What I also figured out is that the definePageMeta itself is being fully ignored. For example, when I set a layout, it does not apply it. Did you try to use it with manual routing?

keen dust
#

When using manual routing that is expected, yes.

plush anchor
#

I see

#

But how do you avoid rerendering with manual routing then?

plush anchor
#

Any idea?