Skip to content

Commit 0274d42

Browse files
David McGurrinDavid McGurrin
andauthored
Replace ViewTransitions with ClientRouter (#17)
Co-authored-by: David McGurrin <davidmcgurrin@Davids-MBP.station>
1 parent c905aa4 commit 0274d42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ yarn add astro-loading-indicator
3030

3131
```diff
3232
---
33-
import { ViewTransitions } from "astro:transitions";
33+
import { ClientRouter } from "astro:transitions";
3434
+import LoadingIndicator from "astro-loading-indicator/component"
3535

3636
---
3737
<!doctype html>
3838
<html>
3939
<head>
40-
<ViewTransitions />
40+
<ClientRouter />
4141
+ <LoadingIndicator />
4242
</head>
4343
</html>

playground/src/layouts/Layout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import { ViewTransitions } from "astro:transitions";
2+
import { ClientRouter } from "astro:transitions";
33
import LoadingIndicator from "astro-loading-indicator/component";
44
55
interface Props {
@@ -18,7 +18,7 @@ const { title } = Astro.props;
1818
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
1919
<meta name="generator" content={Astro.generator} />
2020
<title>{title}</title>
21-
<ViewTransitions />
21+
<ClientRouter />
2222
<LoadingIndicator color="green" height="6px" class="custom-loading-class" />
2323
</head>
2424
<body>

0 commit comments

Comments
 (0)