Skip to content

Commit ecf9696

Browse files
authored
docs: correct grammar (#9953)
1 parent 23f636c commit ecf9696

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/framework/react/guides/disabling-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ so it will only be true if the query is currently fetching for the first time.
9595

9696
## Typesafe disabling of queries using `skipToken`
9797

98-
If you are using TypeScript, you can use the `skipToken` to disable a query. This is useful when you want to disable a query based on a condition, but you still want to keep the query to be type safe.
98+
If you are using TypeScript, you can use the `skipToken` to disable a query. This is useful when you want to disable a query based on a condition, but you still want the query to be type safe.
9999

100100
> **IMPORTANT**: `refetch` from `useQuery` will not work with `skipToken`. Calling `refetch()` on a query that uses `skipToken` will result in a `Missing queryFn` error because there is no valid query function to execute. If you need to manually trigger queries, consider using `enabled: false` instead, which allows `refetch()` to work properly. Other than this limitation, `skipToken` works the same as `enabled: false`.
101101

0 commit comments

Comments
 (0)