From c93c526f50f5ff7a71b4fbc159d0dc56b7f003af Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Fri, 19 Jan 2024 23:23:03 +0100 Subject: [PATCH] refactor(nuxt): remove `currentRoute` non-ref warning (#25337) --- packages/nuxt/src/app/plugins/router.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/nuxt/src/app/plugins/router.ts b/packages/nuxt/src/app/plugins/router.ts index 15ab8d866c..576053bf56 100644 --- a/packages/nuxt/src/app/plugins/router.ts +++ b/packages/nuxt/src/app/plugins/router.ts @@ -160,17 +160,6 @@ export default defineNuxtPlugin<{ route: Route, router: Router }>({ } const currentRoute = computed(() => route) - // TODO: remove this in v3.10 - for (const key in route) { - Object.defineProperty(currentRoute, key, { - get () { - if (import.meta.dev) { - console.warn(`\`currentRoute.${key}\` is deprecated. Use \`currentRoute.value.${key}\` instead.`) - } - return route[key as keyof Route] - } - }) - } const router: Router = { currentRoute,