Skip to content

Commit

Permalink
chore: use startTransition futureflag (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Aug 8, 2023
1 parent 816d355 commit 86f4c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apollo-client/v3/suspense-hooks/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const root = ReactDOM.createRoot(
root.render(
<React.StrictMode>
<ApolloProvider client={client}>
<Router>
<Router future={{ v7_startTransition: true }}>
<Routes>
<Route path="/" element={<Layout />}>
{routes.map(({ path, Element }) => (
Expand Down
6 changes: 3 additions & 3 deletions apollo-client/v3/suspense-hooks/src/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Outlet, useLocation } from "react-router-dom";
import { Link, Outlet, useLocation } from "react-router-dom";
import { routes } from "./routes";
import { useMemo } from "react";

Expand Down Expand Up @@ -29,8 +29,8 @@ export function Layout() {
<ul>
{routes.map(({ path, title }) => (
<li key={path}>
<a
href={`/${path}`}
<Link
to={`/${path}`}
dangerouslySetInnerHTML={{ __html: title }}
/>
</li>
Expand Down

0 comments on commit 86f4c63

Please sign in to comment.