Skip to content

Commit

Permalink
Merge pull request #818 from storyblok/bugfix/uniquekey-use-async-data
Browse files Browse the repository at this point in the history
fix: pass unique key to useAsyncData
  • Loading branch information
alvarosabu committed Apr 19, 2024
2 parents b24837a + beface5 commit e4acbad
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 e4acbad

Please sign in to comment.