Skip to content

Commit 690fd2a

Browse files
docs(react-query): Add import statement with skipToken to the docs (#8519)
* docs(react-query): Add import statement with skipToken to the docs Makes more obvious how should the skipToken be used * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 564e549 commit 690fd2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ If you are using TypeScript, you can use the `skipToken` to disable a query. Thi
104104
[//]: # 'Example3'
105105

106106
```tsx
107+
import { skipToken, useQuery } from '@tanstack/react-query'
108+
107109
function Todos() {
108110
const [filter, setFilter] = React.useState<string | undefined>()
109111

0 commit comments

Comments
 (0)