Fix compressed .mxl handling

This commit is contained in:
2024-12-30 23:12:25 +01:00
parent fc64f77335
commit 52933e617a
5 changed files with 78 additions and 13 deletions

View File

@@ -67,13 +67,21 @@ const router = createBrowserRouter([
path: "/login",
Component: Login,
},
]);
], {
future: {
v7_fetcherPersist: true,
v7_normalizeFormMethod: true,
v7_partialHydration: true,
v7_relativeSplatPath: true,
v7_skipActionErrorRevalidation: true,
},
});
const rootElement = document.getElementById("root") as HTMLDivElement;
const root = createRoot(rootElement);
root.render(
<StrictMode>
<RouterProvider router={router} />
<RouterProvider router={router} future={{ v7_startTransition: true }} />
</StrictMode>,
);