You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/reference/useQuery.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ const result = useQuery({
153
153
- `idle` if the query is idle. This only happens if a query is initialized with `enabled:false` and no initial data is available.
154
154
- `loading` if the query is in a "hard" loading state. This means there is no cached data and the query is currently fetching, eg `isFetching ===true`
155
155
- `error` if the query attempt resulted in an error. The corresponding `error` property has the error received from the attempted fetch
156
-
- `success` if the query has received a response with no errors and is ready to display its data. The corresponding `data` property on the query is the data received from the successful fetch or if the queryis in `manual` mode and has not been fetched yet `data` is the first `initialData` supplied to the query on initialization.
156
+
- `success` if the query has received a response with no errors and is ready to display its data. The corresponding `data` property on the query is the data received from the successful fetch or if the query's `enabled` property is set to `false` and has not been fetched yet `data` is the first `initialData` supplied to the query on initialization.
157
157
- `isIdle: boolean`
158
158
- A derived boolean from the `status` variable above, provided for convenience.
159
159
- `isLoading: boolean`
@@ -176,7 +176,7 @@ const result = useQuery({
176
176
- Will be `true` if the query has been fetched after the component mounted.
177
177
- This property can be used to not show any previously cached data.
178
178
- `isFetching: boolean`
179
-
- Defaults to `true` so long as `manual` is set to `false`
179
+
- Defaults to `true` so long as `enabled` is set to `false`
180
180
- Will be `true` if the query is currently fetching, including background fetching.
0 commit comments