Skip to content

Commit

Permalink
fix: pass unique key to useAsyncData
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Apr 19, 2024
1 parent b24837a commit beface5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/useAsyncStoryblok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const useAsyncStoryblok = async (
});

if (!story.value) {
const { data } = await useAsyncData('story', () => {
const { data } = await useAsyncData(uniqueKey, () => {
return storyblokApiInstance.get(
`cdn/stories/${url}`,
apiOptions
Expand Down

0 comments on commit beface5

Please sign in to comment.