-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update queries.md #9590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update queries.md #9590
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,7 +120,7 @@ TypeScript will also narrow the type of `data` correctly if you've checked for ` | |
|
||
In addition to the `status` field, you will also get an additional `fetchStatus` property with the following options: | ||
|
||
- `fetchStatus === 'fetching'` - The query is currently fetching. | ||
- `fetchStatus === 'fetching the data'` - The query is currently fetching. | ||
- `fetchStatus === 'paused'` - The query wanted to fetch, but it is paused. Read more about this in the [Network Mode](../network-mode.md) guide. | ||
- `fetchStatus === 'idle'` - The query is not doing anything at the moment. | ||
|
||
Comment on lines
+123
to
126
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainIncorrect fetchStatus literal — should be 'fetching' The valid fetchStatus values are exactly: 'fetching', 'paused', 'idle'. Changing the first bullet to "fetching the data" is incorrect and inconsistent with the rest of this page and the official docs. Please revert to 'fetching'. (tanstack.com) Apply this diff: - - `fetchStatus === 'fetching the data'` - The query is currently fetching. + - `fetchStatus === 'fetching'` - The query is currently fetching. Run this to catch any similar regressions across the docs: 🏁 Script executed: #!/bin/bash # Find incorrect literals rg -n -C2 "fetching the data|fetchStatus\s*===\s*['\"]fetching the data['\"]" docs # Sanity-check all documented fetchStatus values rg -n -C2 "fetchStatus\s*===\s*['\"](fetching|paused|idle)['\"]" docs Length of output: 2011 Use the correct
Apply this diff: - `fetchStatus === 'fetching the data'` - The query is currently fetching. + `fetchStatus === 'fetching'` - The query is currently fetching. Verification with ripgrep shows this is the only occurrence of the incorrect literal in 📝 Committable suggestion
Suggested change
- `fetchStatus === 'fetching the data'` - The query is currently fetching.
- `fetchStatus === 'paused'` - The query wanted to fetch, but it is paused. Read more about this in the [Network Mode](../network-mode.md) guide.
- `fetchStatus === 'idle'` - The query is not doing anything at the moment.
- `fetchStatus === 'fetching'` - The query is currently fetching.
- `fetchStatus === 'paused'` - The query wanted to fetch, but it is paused. Read more about this in the [Network Mode](../network-mode.md) guide.
- `fetchStatus === 'idle'` - The query is not doing anything at the moment.
🤖 Prompt for AI Agents
|
||
|