Skip to content

Commit

Permalink
fix: set $fetchState if nonexistent
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 28, 2020
1 parent e03da7f commit d94c40e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ async function callFetches(this: AugmentedComponentInstance) {
const fetchesToCall = fetches.get(this)
if (!fetchesToCall) return
;(this.$nuxt as any).nbFetching++
this.$fetchState = this.$fetchState || {}
this.$fetchState.pending = true
this.$fetchState.error = null
this._hydrated = false

let error = null
const startTime = Date.now()

Expand Down

0 comments on commit d94c40e

Please sign in to comment.