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/docs/api.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
@@ -157,7 +157,7 @@ const queryInfo = useQuery({
157
157
- `idle` if the query is idle. This only happens if a query is initialized with `enabled:false` and no initial data is available.
158
158
- `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`
159
159
- `error` if the query attempt resulted in an error. The corresponding `error` property has the error received from the attempted fetch
160
-
- `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.
160
+
- `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.
161
161
- `isIdle:Boolean`
162
162
- A derived boolean from the `status` variable above, provided for convenience.
163
163
- `isLoading:Boolean`
@@ -180,7 +180,7 @@ const queryInfo = useQuery({
180
180
- Will be `true` if the query has been fetched after the component mounted.
181
181
- This property can be used to not show any previously cached data.
182
182
- `isFetching:Boolean`
183
-
- Defaults to `true` so long as `manual` is set to `false`
183
+
- Defaults to `true` so long as `enabled` is set to `false`
184
184
- Will be `true` if the query is currently fetching, including background fetching.
0 commit comments