File tree 2 files changed +4
-4
lines changed
apollo-client/v3/suspense-hooks/src
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const root = ReactDOM.createRoot(
20
20
root . render (
21
21
< React . StrictMode >
22
22
< ApolloProvider client = { client } >
23
- < Router >
23
+ < Router future = { { v7_startTransition : true } } >
24
24
< Routes >
25
25
< Route path = "/" element = { < Layout /> } >
26
26
{ routes . map ( ( { path, Element } ) => (
Original file line number Diff line number Diff line change 1
- import { Outlet , useLocation } from "react-router-dom" ;
1
+ import { Link , Outlet , useLocation } from "react-router-dom" ;
2
2
import { routes } from "./routes" ;
3
3
import { useMemo } from "react" ;
4
4
@@ -29,8 +29,8 @@ export function Layout() {
29
29
< ul >
30
30
{ routes . map ( ( { path, title } ) => (
31
31
< li key = { path } >
32
- < a
33
- href = { `/${ path } ` }
32
+ < Link
33
+ to = { `/${ path } ` }
34
34
dangerouslySetInnerHTML = { { __html : title } }
35
35
/>
36
36
</ li >
You can’t perform that action at this time.
0 commit comments