Skip to content

Commit

Permalink
Update useQuery.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored Feb 2, 2022
1 parent 3f9ca11 commit 5423a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-urql/src/hooks/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ export function useQuery<Data = any, Variables = object>(
const unsub = pipe(
source,
subscribe(_result => {
result = _result;
if (suspense) {
cache.set(request.key, result);
}
result = _result;
notify();
})
).unsubscribe;
Expand Down

0 comments on commit 5423a68

Please sign in to comment.