i have a request when i abort this request will be a error "signal is aborted without reason"
Environment
ofetch@^1.3.4: version "1.3.4"
[email protected]: 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
same issue here
same as signal is defined.
any update on this?
Actually, I can not reproduce it using the latest ofetch version.
Could you please provide a minimal reproductoin with this example?
I tried what you described, and it works well (with the expected error thrown).