mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(nuxt): don't wrap setup with runWithContext
This commit is contained in:
parent
1cce11f6a4
commit
47ac6bb843
@ -47,8 +47,7 @@ export const defineNuxtComponent: typeof defineComponent =
|
||||
_fetchKeyBase: key,
|
||||
...options,
|
||||
setup (props, ctx) {
|
||||
const nuxtApp = useNuxtApp()
|
||||
const res = setup ? Promise.resolve(nuxtApp.runWithContext(() => setup(props, ctx))).then(r => r || {}) : {}
|
||||
const res = setup ? setup(props, ctx) : {}
|
||||
|
||||
const promises: Promise<any>[] = []
|
||||
if (options.asyncData) {
|
||||
|
Loading…
Reference in New Issue
Block a user