From beface5ed7d9ec3fa94b701a1bfc5fd71f4954ff Mon Sep 17 00:00:00 2001 From: alvarosabu Date: Fri, 19 Apr 2024 08:31:40 +0200 Subject: [PATCH] fix: pass unique key to useAsyncData --- src/runtime/composables/useAsyncStoryblok.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/useAsyncStoryblok.ts b/src/runtime/composables/useAsyncStoryblok.ts index 226e740..f0281af 100644 --- a/src/runtime/composables/useAsyncStoryblok.ts +++ b/src/runtime/composables/useAsyncStoryblok.ts @@ -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