NuxtN
Nuxt14mo ago
4 replies
Sun

How to avoid duplicated requests between the server side of two island components?

Hey,

I have 3 island components (I use the concept with .server.vue and .client.vue files by island component).
I want to fetch the same data from the 3 components, from server side.

I don't find the way to share the cache of a useAsyncData between all components, in server side.

Is useAsyncData the good way? Is there another way to share data and avoid multiple fetchs?

Thanks 🥲
Was this page helpful?