Skip to content

Commit 901140e

Browse files
committed
Update changeset
1 parent 82598df commit 901140e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.changeset/tame-grapes-kiss.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"@apollo/client": patch
33
---
44

5-
Support `skipToken` with `useQuery` to skip execution.
5+
Support `skipToken` with `useQuery` to provide a more type-safe way to skip query execution.
66

77
```ts
88
import { skipToken, useQuery } from "@apollo/client/react"
@@ -11,3 +11,5 @@ import { skipToken, useQuery } from "@apollo/client/react"
1111
// for required variables
1212
const { data } = useQuery(QUERY, id ? { variables: { id } } : skipToken);
1313
```
14+
15+
Note: this change is provided as a patch due to the changes in TypeScript validation with required variables which made using the `skip` option much more difficult.

0 commit comments

Comments
 (0)