Skip to content

Commit a50bade

Browse files
committed
fixed router warnings
1 parent 2de5594 commit a50bade

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const App = () => {
103103
<IonApp>
104104
<Fabric>
105105
<Customizer {...theme}>
106-
<HashRouter>
106+
<HashRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }}>
107107
<FabricNav />
108108
<IonRouterOutlet id="main">
109109
<Routes>

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ if (
114114
) {
115115
root.render(
116116
<React.StrictMode>
117-
<HashRouter>
117+
<HashRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }}>
118118
<App2 />
119119
</HashRouter>
120120
</React.StrictMode>

0 commit comments

Comments
 (0)