Skip to content

Commit 7f6d122

Browse files
committed
test(no-navigation-without-resolve): added ResolvedPathname tests
1 parent ab848e4 commit 7f6d122

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script lang="ts">
2+
import { type ResolvedPathname } from '$app/types';
3+
import { goto } from '$app/navigation';
4+
5+
interface Props {
6+
href: ResolvedPathname;
7+
}
8+
9+
const { href }: Props = $props();
10+
11+
goto(href);
12+
</script>

0 commit comments

Comments
 (0)