We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 094cbe7 commit e675a32Copy full SHA for e675a32
packages/toolkit/src/query/fetchBaseQuery.ts
@@ -305,7 +305,8 @@ export function fetchBaseQuery({
305
return {
306
error: {
307
status:
308
- e instanceof Error && e.name === 'TimeoutError'
+ (e instanceof Error || e instanceof DOMException) &&
309
+ e.name === 'TimeoutError'
310
? 'TIMEOUT_ERROR'
311
: 'FETCH_ERROR',
312
error: String(e),
0 commit comments