#Use an async function for `getCachedData`
1 messages · Page 1 of 1 (latest)
No, the function result it is not awaited.
What are you trying to do?
I am trying to access the nitro server storage through an api endpoint (which will not result in a network call when executing on the server)
Basically, I want to create a wrapper around useFetch, which will cache an external api response on the server after the first call & then only use the cached value during SSR