From d3df7755115394f25d53085cf7503a6ac72ad58e Mon Sep 17 00:00:00 2001 From: gatzjames Date: Mon, 25 Nov 2024 22:08:03 +0100 Subject: [PATCH] =?UTF-8?q?tada=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/insomnia/package.json | 2 +- packages/insomnia/src/ui/index.tsx | 10 ---------- packages/insomnia/src/ui/routes/project.tsx | 5 ++--- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/packages/insomnia/package.json b/packages/insomnia/package.json index 106fe7140cb8..a2145e12db59 100644 --- a/packages/insomnia/package.json +++ b/packages/insomnia/package.json @@ -77,7 +77,6 @@ "oauth-1.0a": "^2.2.6", "papaparse": "^5.4.1", "prettier": "2.4.1", - "react-router": "^7.0.1", "shell-quote": "^1.8.1", "swagger-ui-dist": "^5.17.14", "tough-cookie": "^4.1.3", @@ -168,6 +167,7 @@ "react-aria-components": "^1.1.1", "react-dom": "^18.2.0", "react-resizable-panels": "^2.0.17", + "react-router": "^7.0.1", "react-stately": "3.30.1", "react-use": "^17.5.0", "tailwindcss": "^3.4.3", diff --git a/packages/insomnia/src/ui/index.tsx b/packages/insomnia/src/ui/index.tsx index ff738940384c..99700cf4ff36 100644 --- a/packages/insomnia/src/ui/index.tsx +++ b/packages/insomnia/src/ui/index.tsx @@ -1138,13 +1138,6 @@ async function renderApp() { ], { initialEntries: [initialEntry], - future: { - v7_relativeSplatPath: true, - v7_fetcherPersist: true, - v7_normalizeFormMethod: true, - v7_partialHydration: true, - v7_skipActionErrorRevalidation: true, - }, } ); @@ -1173,9 +1166,6 @@ async function renderApp() { ReactDOM.createRoot(root).render( ); diff --git a/packages/insomnia/src/ui/routes/project.tsx b/packages/insomnia/src/ui/routes/project.tsx index 4ce3ec0bd5bf..0eebeb5f58ee 100644 --- a/packages/insomnia/src/ui/routes/project.tsx +++ b/packages/insomnia/src/ui/routes/project.tsx @@ -30,7 +30,6 @@ import { import { Panel, PanelGroup, PanelResizeHandle } from 'react-resizable-panels'; import { type ActionFunction, - defer, type LoaderFunction, redirect, useFetcher, @@ -576,7 +575,7 @@ export const loader: LoaderFunction = async ({ const projectsSyncStatusPromise = CheckAllProjectSyncStatus(projects); - return defer({ + return { localFiles, learningFeaturePromise, remoteFilesPromise, @@ -597,7 +596,7 @@ export const loader: LoaderFunction = async ({ file => file.scope === 'mock-server' ).length, projectsSyncStatusPromise, - }); + }; }; const ProjectRoute: FC = () => {