Skip to content

Commit bc33b21

Browse files
committed
Use request-aware fetch for SSR commits data
1 parent 854c442 commit bc33b21

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/app/app/components/Commits.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ const props = defineProps<{
1212
repo: string;
1313
}>();
1414
15+
const requestFetch = useRequestFetch();
16+
1517
const { data } = await useAsyncData(
1618
`repo-commits:${props.owner}:${props.repo}:page:1`,
1719
() =>
18-
$fetch("/api/repo/commits", {
20+
requestFetch("/api/repo/commits", {
1921
query: {
2022
owner: props.owner,
2123
repo: props.repo,

0 commit comments

Comments
 (0)