Skip to content

Commit c8e7397

Browse files
authored
fix(vue-app): use globals.nuxt for fetch client mixin (nuxt#7103)
1 parent 124ab40 commit c8e7397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-app/template/mixins/fetch.client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function created() {
5353
}
5454

5555
async function $fetch() {
56-
this.$nuxt.nbFetching++
56+
this.<%= globals.nuxt %>.nbFetching++
5757
this.$fetchState.pending = true
5858
this.$fetchState.error = null
5959
this._hydrated = false
@@ -75,6 +75,6 @@ async function $fetch() {
7575
this.$fetchState.pending = false
7676
this.$fetchState.timestamp = Date.now()
7777

78-
this.$nextTick(() => this.$nuxt.nbFetching--)
78+
this.$nextTick(() => this.<%= globals.nuxt %>.nbFetching--)
7979
}
8080

0 commit comments

Comments
 (0)