Skip to content

Commit

Permalink
fix(articles): dynamic useAsyncData key (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
larbish committed Feb 26, 2024
1 parent 417beed commit f76f4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/content/ArticlesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const props = defineProps({
})
// @ts-ignore
const { data: _articles } = await useAsyncData('articles', async () => await queryContent(withTrailingSlash(props.path)).sort({ date: -1 }).find())
const { data: _articles } = await useAsyncData(props.path, async () => await queryContent(withTrailingSlash(props.path)).sort({ date: -1 }).find())
const articles = computed(() => _articles.value || [])
</script>
Expand Down

0 comments on commit f76f4bd

Please sign in to comment.