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 e675a32 commit af536b9Copy full SHA for af536b9
packages/toolkit/src/query/fetchBaseQuery.ts
@@ -305,7 +305,9 @@ export function fetchBaseQuery({
305
return {
306
error: {
307
status:
308
- (e instanceof Error || e instanceof DOMException) &&
+ (e instanceof Error ||
309
+ (typeof DOMException !== 'undefined' &&
310
+ e instanceof DOMException)) &&
311
e.name === 'TimeoutError'
312
? 'TIMEOUT_ERROR'
313
: 'FETCH_ERROR',
0 commit comments