Skip to content

Commit 57c2c2d

Browse files
authored
feat(route): Fix routing (allthatjazzleo#4)
1 parent ea0d4b9 commit 57c2c2d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

frontend/src/tanstack.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
import { QueryClient } from '@tanstack/react-query';
2-
import { createMemoryHistory, createRouter } from '@tanstack/react-router';
2+
import { createHashHistory, createRouter } from '@tanstack/react-router';
33

44
import { routeTree } from './routeTree.gen';
55

66
// Create a new router instance
77

88
const queryClient = new QueryClient();
99

10-
const memoryHistory = createMemoryHistory({
11-
initialEntries: ['/proposal-manager/'],
12-
});
10+
const hashHistory = createHashHistory();
1311

1412
const router = createRouter({
1513
routeTree,
16-
history: memoryHistory,
14+
history: hashHistory,
1715
context: {
1816
queryClient,
1917
},

0 commit comments

Comments
 (0)