Skip to content

Commit 19b1368

Browse files
Update sentence on retain
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
1 parent 5156b9c commit 19b1368

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/source/data/queries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ const handleClick = async () => {
526526
527527
In-flight queries executed by `useLazyQuery` are aborted when the component unmounts, causing the promise to reject. In some cases, you might find this behavior undesirable and would prefer to let the query run to completion.
528528
529-
The promise returned by the execution function includes a `.retain()` method. When called, it ensures the query continues running even when the component unmounts.
529+
The promise returned by the execution function includes a `.retain()` method. When called, it ensures the query continues running even when the component unmounts or a new query is started before the last one finished.
530530
531531
```jsx
532532
function GetDogs() {

0 commit comments

Comments
 (0)