Skip to content

Commit 6594d0f

Browse files
authored
Add hash router (#1848)
1 parent 1183876 commit 6594d0f

File tree

1 file changed

+6
-1
lines changed
  • apps/hyperdrive-trading/src/ui/app/App

1 file changed

+6
-1
lines changed

apps/hyperdrive-trading/src/ui/app/App/App.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { ReactElement, StrictMode } from "react";
22

3-
import { createRouter, RouterProvider } from "@tanstack/react-router";
3+
import {
4+
createHashHistory,
5+
createRouter,
6+
RouterProvider,
7+
} from "@tanstack/react-router";
48

59
// Import the generated route tree
610
import { routeTree } from "src/routeTree.gen";
@@ -11,6 +15,7 @@ import { useAccount, useAccountEffect } from "wagmi";
1115
const router = createRouter({
1216
routeTree,
1317
basepath: import.meta.env.VITE_BASE_PATH,
18+
history: createHashHistory(),
1419
});
1520

1621
// Register the router instance for type safety

0 commit comments

Comments
 (0)