diff --git a/docs/7.migration/7.component-options.md b/docs/7.migration/7.component-options.md index 56986c302f..873711a86c 100644 --- a/docs/7.migration/7.component-options.md +++ b/docs/7.migration/7.component-options.md @@ -125,7 +125,7 @@ The validate hook in Nuxt 3 only accepts a single argument, the `route`. Just as + definePageMeta({ + validate: async (route) => { + const nuxtApp = useNuxtApp() -+ return /^\d+$/.test(params.id) ++ return /^\d+$/.test(route.params.id) + } + })