From 876aab0888b02b3bae8f437ad862fa874fecc2cd Mon Sep 17 00:00:00 2001 From: Wes Date: Thu, 14 Nov 2024 15:03:34 -0700 Subject: [PATCH] chore: opt-in to new react router features to silence warnings (#3390) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ![Screenshot 2024-11-14 at 1 53 01 PM](https://github.com/user-attachments/assets/23893cde-7730-4fac-bf91-a6eb131dcad6) --- frontend/console/src/providers/routing-provider.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/frontend/console/src/providers/routing-provider.tsx b/frontend/console/src/providers/routing-provider.tsx index a45d51c376..8f8396fd8e 100644 --- a/frontend/console/src/providers/routing-provider.tsx +++ b/frontend/console/src/providers/routing-provider.tsx @@ -28,8 +28,17 @@ const router = createBrowserRouter( } /> , ), + { + future: { + v7_relativeSplatPath: true, + v7_fetcherPersist: true, + v7_normalizeFormMethod: true, + v7_partialHydration: true, + v7_skipActionErrorRevalidation: true, + }, + }, ) export const RoutingProvider = () => { - return + return }