We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9623194 commit 8dbc695Copy full SHA for 8dbc695
src/main.tsx
@@ -1,10 +1,12 @@
1
import { StrictMode } from "react";
2
import { createRoot } from "react-dom/client";
3
-import { createRouter, RouterProvider } from "@tanstack/react-router";
+import { createHashHistory, createRouter, RouterProvider } from "@tanstack/react-router";
4
import { routeTree } from '@/routeTree.gen'
5
import "@/index.css";
6
7
-const router = createRouter({ routeTree })
+const hashHistory = createHashHistory()
8
+
9
+const router = createRouter({ routeTree, history: hashHistory });
10
11
declare module '@tanstack/react-router' {
12
interface Register {
0 commit comments