79415253

Date: 2025-02-05 15:20:57
Score: 1.5
Natty:
Report link

this post made my day, really !! i was struggling for weeks with request in cache, and by adding dynamic key to my request, it fix everything !

is someone comes over here :

const { data: story } = await useAsyncData(`articleStory:${slug}` , 
   async () => {
     const response = await 
     storyblokApi.get(`cdn/stories/articles/${slug}`, {
      version: version,
      resolve_relations: "post.categories,post.related",
   });
  return response.data.story || null;
});

cheers all

Reasons:
  • Blacklisted phrase (1): cheers
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: oldBeaver