Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(core): support aborting in `withPromise` cases (#2446)

* return a response for aborted requests to avoid infinite promise hanging

* treat aborts like any other error

* Create heavy-rabbits-beam.md

authored by

Jovi De Croock and committed by
GitHub
f89cfd06 1ab77b65

+12 -9
+5
.changeset/heavy-rabbits-beam.md
··· 1 + --- 2 + "@urql/core": patch 3 + --- 4 + 5 + Support aborting in `withPromise` cases
+7 -9
packages/core/src/internal/fetchSource.ts
··· 158 158 throw error; 159 159 } 160 160 161 - if (error.name !== 'AbortError') { 162 - const result = makeErrorResult( 163 - operation, 164 - statusNotOk ? new Error(response.statusText) : error, 165 - response 166 - ); 161 + const result = makeErrorResult( 162 + operation, 163 + statusNotOk ? new Error(response.statusText) : error, 164 + response 165 + ); 167 166 168 - next(result); 169 - complete(); 170 - } 167 + next(result); 168 + complete(); 171 169 }); 172 170 173 171 return () => {