-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes in the client-side router (#8166)
* Fixes in the client-side router * reverted function declaration after review (#8166) --------- Co-authored-by: Nate Moore <[email protected]>
- Loading branch information
1 parent
cfc465d
commit fddd4dc
Showing
5 changed files
with
105 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'astro': patch | ||
--- | ||
|
||
ViewTransitions: Fixes in the client-side router |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/astro/e2e/fixtures/view-transitions/src/pages/half-baked.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
import { ViewTransitions } from 'astro:transitions'; | ||
// For the test fixture, we import the script but we don't use the <ViewTransitions /> component | ||
// While this seems to be some strange mistake, | ||
// it might be realistic, e.g. in a configurable CommenHead component | ||
interface Props { | ||
transitions?: string; | ||
} | ||
const { transitions } = Astro.props; | ||
--- | ||
<html> | ||
<head> | ||
<title>Half-Baked</title> | ||
{transitions && <ViewTransitions />} | ||
</head> | ||
<body> | ||
<main> | ||
<p id="half-baked">Half Baked</p> | ||
<a id="click-hash" href="#click-hash">hash target</a> | ||
</main> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters