Skip to content

Commit

Permalink
Merge pull request #9684 from apollographql/issue-9655-duplicate-useL…
Browse files Browse the repository at this point in the history
…azyQuery-first-request

Prevent `useLazyQuery` from making duplicate requests when
its execution function is first called, and stop rejecting the `Promise`
it returns when `result.error` is defined.
  • Loading branch information
benjamn committed May 5, 2022
2 parents 9302aea + aef87e9 commit f9097a2
Show file tree
Hide file tree
Showing 4 changed files with 186 additions and 99 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
- Test that `useQuery` queries with `skip: true` do not stall server-side rendering. <br/>
[@nathanmarks](https://github.com/nathanmarks) and [@benjamn](https://github.com/benjamn) in [#9677](https://github.com/apollographql/apollo-client/pull/9677)

- Prevent `useLazyQuery` from making duplicate requests when its execution function is first called, and stop rejecting the `Promise` it returns when `result.error` is defined. <br/>
[@benjamn](https://github.com/benjamn) in [#9684](https://github.com/apollographql/apollo-client/pull/9684)

## Apollo Client 3.6.2 (2022-05-02)

### Bug Fixes
Expand Down
Loading

0 comments on commit f9097a2

Please sign in to comment.