muttley
muttley
NNuxt
Created by muttley on 4/5/2024 in #❓・help
Examples/Routing/Pages difference static vs reload
I'm noob and still learning...sorry for the trivial question. In the official example: https://nuxt.com/docs/examples/routing/pages I don't understand what difference should be between the parent/reload-[id] and parent/static-[id] pages. I thought the presence of key:
definePageMeta({
key: 'static',
});
definePageMeta({
key: 'static',
});
in the static-[id] page, should prevent the re-rendering as described in Child Route Keys. Avoiding the increment of the reloads var, and the onMounted() execution. So, what is the behavioral difference between the two routes: parent/reload-[id] and parent/static-[id]? And the meaning of key in the definePageMeta() arg? Thanks!
5 replies