Skip to content

Commit

Permalink
Drop getCurrentInstance check in runWithContext
Browse files Browse the repository at this point in the history
  • Loading branch information
daniluk4000 committed May 2, 2024
1 parent a3e75f3 commit 07dd3f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/app/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export function createNuxtApp (options: CreateOptions) {
data: {},
},
runWithContext (fn: any) {
if (nuxtApp._scope.active && !(getCurrentScope() || getCurrentInstance())) {
if (nuxtApp._scope.active && !getCurrentScope()) {
return nuxtApp._scope.run(() => callWithNuxt(nuxtApp, fn))
}
return callWithNuxt(nuxtApp, fn)
Expand Down

0 comments on commit 07dd3f9

Please sign in to comment.