We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
useFetch
1 parent b29c0e8 commit bf454cbCopy full SHA for bf454cb
packages/nuxt/src/app/composables/fetch.ts
@@ -147,7 +147,7 @@ export function useFetch<
147
watch: watch === false ? [] : [_fetchOptions, _request, ...(watch || [])],
148
}
149
150
- if (import.meta.dev && import.meta.client) {
+ if (import.meta.dev && import.meta.server) {
151
// @ts-expect-error private property
152
_asyncDataOptions._functionName = opts._functionName || 'useFetch'
153
@@ -230,7 +230,7 @@ export function useLazyFetch<
230
) {
231
const [opts = {}, autoKey] = typeof arg1 === 'string' ? [{}, arg1] : [arg1, arg2]
232
233
234
235
opts._functionName ||= 'useLazyFetch'
236
0 commit comments