8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nuxtApp
1 parent e7ba9f9 commit c516774Copy full SHA for c516774
packages/nuxt/src/app/composables/asyncData.ts
@@ -621,7 +621,7 @@ function createAsyncData<
621
const value = nuxtApp.ssrContext!._sharedPrerenderCache!.get(key)
622
if (value) { return value as Promise<ResT> }
623
624
- const promise = Promise.resolve().then(() => nuxtApp.runWithContext(_handler))
+ const promise = Promise.resolve().then(() => nuxtApp.runWithContext(() => _handler(nuxtApp)))
625
626
nuxtApp.ssrContext!._sharedPrerenderCache!.set(key, promise)
627
return promise
0 commit comments