From 6d7be476a2caaf4683193b62d15ddee00bf27804 Mon Sep 17 00:00:00 2001 From: Benjamin Flesch Date: Sun, 12 Feb 2023 20:18:39 +0100 Subject: [PATCH] docs: fix typo (#18975) --- docs/7.migration/7.component-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) + } + })