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.

Allow @defer to work in queries with suspense enabled (#3687)

authored by

Andy Ingram and committed by
GitHub
a5bc925a 04387403

+11 -1
+5
.changeset/shiny-eagles-join.md
··· 1 + --- 2 + 'urql': minor 3 + --- 4 + 5 + Support use of defer with suspense
+6 -1
packages/react-urql/src/hooks/useQuery.ts
··· 263 263 264 264 const subscription = pipe( 265 265 source, 266 - takeWhile(() => (suspense && !resolve) || !result), 266 + takeWhile( 267 + () => 268 + (suspense && !resolve) || 269 + !result || 270 + ('hasNext' in result && result.hasNext) 271 + ), 267 272 subscribe(_result => { 268 273 result = _result; 269 274 if (resolve) resolve(result);