Open ChinDer opened 2 months ago
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
same issue here
same as signal is defined.
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