We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ofetch@^1.3.4: version "1.3.4"
nuxt@3.8.2: version "3.8.2"
signal is new AbortController().signal
$fetch(url, { ...params, key, baseURL: VITE_API_URL, signal, onRequest(context: any) { // doing something }, onResponse(res: any) { const { error, response } = res // doing something return response._data }, onError(e: any) { console.log(e) }, })
even though I cancelled the request, the return value is still there.
No response
The text was updated successfully, but these errors were encountered:
same issue here
Sorry, something went wrong.
same as signal is defined.
any update on this?
No branches or pull requests
Environment
ofetch@^1.3.4:
version "1.3.4"
nuxt@3.8.2:
version "3.8.2"
Reproduction
signal is new AbortController().signal
$fetch(url, {
...params,
key,
baseURL: VITE_API_URL,
signal,
onRequest(context: any) {
// doing something
},
onResponse(res: any) {
const { error, response } = res
// doing something
return response._data
},
onError(e: any) {
console.log(e)
},
})
Describe the bug
even though I cancelled the request, the return value is still there.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: