fix: use hashhistory to ensured compiled app works
This commit is contained in:
parent
5f904f2ba3
commit
8e661301c5
1 changed files with 8 additions and 1 deletions
|
|
@ -1,11 +1,18 @@
|
|||
import React from "react";
|
||||
import { RouterProvider, createRouter } from "@tanstack/react-router";
|
||||
import {
|
||||
RouterProvider,
|
||||
createRouter,
|
||||
createHashHistory,
|
||||
} from "@tanstack/react-router";
|
||||
import { routeTree } from "./routeTree.gen";
|
||||
|
||||
const hashHistory = createHashHistory();
|
||||
|
||||
// Create the router instance
|
||||
const router = createRouter({
|
||||
routeTree,
|
||||
defaultPreload: "intent",
|
||||
history: hashHistory,
|
||||
});
|
||||
|
||||
// Register the router instance for type safety
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue