🐛 fix: add hash history support for routing in admin and user applications

This commit is contained in:
web
2025-11-30 01:02:25 -08:00
parent 7fa920f397
commit bfc1773226
3 changed files with 21 additions and 10 deletions
+7 -1
View File
@@ -1,4 +1,8 @@
import { createRouter, RouterProvider } from "@tanstack/react-router";
import {
createHashHistory,
createRouter,
RouterProvider,
} from "@tanstack/react-router";
import {
TanStackQueryContext,
TanStackQueryProvider,
@@ -52,8 +56,10 @@ window.logout = Logout;
// Create a new router instance
const TanStackQueryProviderContext = TanStackQueryContext();
const hashHistory = createHashHistory();
const router = createRouter({
routeTree,
history: hashHistory,
context: {
...TanStackQueryProviderContext,
},