Skip to content

Commit

Permalink
docs(react-query): Add import statement with skipToken to the docs (#…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
entioentio and autofix-ci[bot] authored Jan 10, 2025
1 parent 564e549 commit 690fd2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/framework/react/guides/disabling-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ If you are using TypeScript, you can use the `skipToken` to disable a query. Thi
[//]: # 'Example3'

```tsx
import { skipToken, useQuery } from '@tanstack/react-query'

function Todos() {
const [filter, setFilter] = React.useState<string | undefined>()

Expand Down

0 comments on commit 690fd2a

Please # to comment.