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 issue with paused queries not executing correctly (#1982)

authored by

Jovi De Croock and committed by
GitHub
83cc0172 3e8929ad

+6 -1
+5
.changeset/smart-bags-confess.md
··· 1 + --- 2 + 'urql': patch 3 + --- 4 + 5 + Fix issue where a paused query would not behave correctly when calling `executeQuery`, this scenario occured when the query has variables, there would be cases where on the first call it would think that the dependencies had changed (previous request vs current request) which made the source reset to null
+1 -1
packages/react-urql/src/hooks/useQuery.ts
··· 207 207 }) 208 208 ) 209 209 : client.executeQuery(request, context); 210 - return [source, state[1], state[2]]; 210 + return [source, state[1], deps]; 211 211 }); 212 212 }, 213 213 [