Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 | 38x 70x | // Nuxt's default reuses fetched data only while hydrating or from a loaded `_payload.json`
export const useCachedFetch = createUseFetch({
getCachedData: (key, nuxtApp, { cause }) =>
cause === "refresh:manual" || cause === "refresh:hook"
? undefined
: ((nuxtApp.payload.data[key] ?? nuxtApp.static.data[key]) as unknown),
});
|