Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 39 additions & 24 deletions horreum-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions horreum-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"react-dom": "19.1.1",
"react-markdown": "10.1.0",
"react-redux": "9.2.0",
"react-router": "6.24.1",
"react-router-dom": "6.24.1",
"react-router": "7.9.1",
"react-router-dom": "7.9.1",
"react-to-print": "3.1.1",
"recharts": "3.1.2",
"redux": "5.0.1",
Expand Down
17 changes: 16 additions & 1 deletion horreum-web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,22 @@ const router = createBrowserRouter(
<Route path="/admin" element={<Admin/>}/>
<Route path="/usersettings" element={<UserSettings/>}/>
</Route>
)
), {
future: {
// loaders will no longer revalidate by default after an action throws/returns a Response with a 4xx/5xx status code
v7_skipActionErrorRevalidation: true,
// it is also useful if you are using lazy to load your route modules
v7_partialHydration: true,
// This normalizes formMethod fields as uppercase HTTP methods to align with the fetch() behavior
v7_normalizeFormMethod: true,
// The fetcher lifecycle is now based on when it returns to an idle state rather than when its owner component unmounts
v7_fetcherPersist: true,
// This uses React.useTransition instead of React.useState for Router state updates
v7_startTransition: true,
// Changes the relative path matching and linking for multi-segment splats paths like dashboard/* (vs. just *)
v7_relativeSplatPath: true,
},
}
);

export default function App() {
Expand Down
Loading