Skip to content

Commit 69a5d79

Browse files
authored
docs: Fix typo in query cancellation docs (TanStack#2863)
1 parent e7a3207 commit 69a5d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/guides/query-cancellation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const query = useQuery('todos', ({ signal }) => {
9191
9292
## Manual Cancellation
9393
94-
You might want to cancel a query manually. For example, if the request takes a long time to finish, you can allow the user to click a cancel button to stop the request. To do this, you just need to call `queryClient.cancelQueries(key)`. If `promise.cancel` is available or you have consumed the `singal` passed to the query function then React Query will cancel the request.
94+
You might want to cancel a query manually. For example, if the request takes a long time to finish, you can allow the user to click a cancel button to stop the request. To do this, you just need to call `queryClient.cancelQueries(key)`. If `promise.cancel` is available or you have consumed the `signal` passed to the query function then React Query will cancel the request.
9595
9696
```js
9797
const [queryKey] = useState('todos')

0 commit comments

Comments
 (0)