N
Nuxt3mo ago
Pawieplays

Metadata for Route

How to pass a metadata from the next route? On Nuxt 2, I remember you can pass additional parameters but it seems like this has been removed on Nuxt 3? I'm aware you can use the query parameters but the payload to the next route is quite long and we don't want to put that in the URL.
1 Reply
Mads
Mads3mo ago
You still can using definePageMeta. Or maybe be wrong. You want to do a navigation and pass some data along, without setting a query? It seems like the wrong approach. I would look into using setting a useState or maybe definePageMeta like so. definePageMeta({ pageType: 'Checkout', })
Want results from more Discord servers?
Add your server