bobvantpadje
bobvantpadje
NNuxt
Created by bobvantpadje on 9/12/2024 in #❓・help
Shareable custom useAsyncData composable
Oke makes sense. Thanks for your help!
6 replies
NNuxt
Created by bobvantpadje on 9/12/2024 in #❓・help
Shareable custom useAsyncData composable
Thank you! That's actually a cool approach. I created an updated Codesandbox that does this which seems to work well. However, looking at the docs the Nuxt docs for useAsyncData. It seems like the default value for getCachedData is key => nuxt.isHydrating ? nuxt.payload.data[key] : nuxt.static.data[key]. Why would they only set the payload data when hydrating? For me it seems like nuxt.static.data is always empty...
6 replies