Skip to content

Commit

Permalink
fix: use reactive rather than Vue.observable in useFetch
Browse files Browse the repository at this point in the history
closes #455
  • Loading branch information
danielroe committed Apr 14, 2021
1 parent 1e0fd4b commit 385bb73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/composables/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Vue from 'vue'
import {
isRef,
onBeforeMount,
onServerPrefetch,
reactive,
set,
} from '@vue/composition-api'

Expand Down Expand Up @@ -122,7 +122,7 @@ async function callFetches(this: AugmentedComponentInstance) {
const setFetchState = (vm: AugmentedComponentInstance) => {
vm.$fetchState =
vm.$fetchState ||
Vue.observable({
reactive({
error: null,
pending: false,
timestamp: 0,
Expand Down

0 comments on commit 385bb73

Please sign in to comment.