Mads
Explore posts from serversMetadata for Route
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',
})
3 replies
Amateur Looking for Help Making POST to MySQL Using Nuxt 3
Would you be able to post it as a Gist or just add the code in here?
But from just reading your post I would assume your connection to the Nitro backend is fine and gets called when you want it to. It seems like the data it receives could be wrong. I would debug here first, throw in some console logs to see what it catches. Does it receive your body data?
If it does, onto next issue.
Other than that, I would highly recommend Drizzle or Prisma as it would give you some better error logs on what goes wrong.
2 replies
Best practice for using the Route for storing state
I believe what you are talking about is modal routes.
It’s a bit complex to build as there can be many edge cases. Luckily there is a module for that.
https://nuxt-pages-plus.pages.dev/routing/modal-routes/
It is great practice to add /create for creation, this way you can link to the page of creation. Adding a modal is just a style preference.
Best of luck.
3 replies