Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 385bb73

Browse files
committed
fix: use reactive rather than Vue.observable in useFetch
closes #455
1 parent 1e0fd4b commit 385bb73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/composables/fetch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import Vue from 'vue'
21
import {
32
isRef,
43
onBeforeMount,
54
onServerPrefetch,
5+
reactive,
66
set,
77
} from '@vue/composition-api'
88

@@ -122,7 +122,7 @@ async function callFetches(this: AugmentedComponentInstance) {
122122
const setFetchState = (vm: AugmentedComponentInstance) => {
123123
vm.$fetchState =
124124
vm.$fetchState ||
125-
Vue.observable({
125+
reactive({
126126
error: null,
127127
pending: false,
128128
timestamp: 0,

0 commit comments

Comments
 (0)