bobvantpadje
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