Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
chore(nuxt): change isref to unref
Browse files Browse the repository at this point in the history
  • Loading branch information
yufanzheng0723 committed Sep 25, 2022
1 parent 71ef8bd commit f699cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/src/app/composables/fetch.ts
@@ -1,6 +1,6 @@
import type { FetchError, FetchOptions } from 'ohmyfetch'
import type { TypedInternalResponse, NitroFetchRequest } from 'nitropack'
import { computed, isRef, Ref } from 'vue'
import { computed, unref, Ref } from 'vue'
import type { AsyncDataOptions, _Transform, KeyOfRes, AsyncData, PickFrom } from './asyncData'
import { useAsyncData } from './asyncData'

Expand Down Expand Up @@ -52,7 +52,7 @@ export function useFetch<
if (typeof r === 'function') {
r = r()
}
return (isRef(r) ? r.value : r)
return unref(r)
})

const {
Expand Down

0 comments on commit f699cbd

Please sign in to comment.