We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b95b865 commit 60eb974Copy full SHA for 60eb974
docs/src/pages/guides/query-cancellation.md
@@ -14,10 +14,11 @@ But don't worry! If your queries are high-bandwidth or potentially very expensiv
14
## Using `axios`
15
16
```js
17
-import { CancelToken } from 'axios'
+import axios from 'axios'
18
19
const query = useQuery('todos', () => {
20
// Create a new CancelToken source for this request
21
+ const CancelToken = axios.CancelToken
22
const source = CancelToken.source()
23
24
const promise = axios.get('/todos', {
0 commit comments