Skip to content

Commit 7abc26a

Browse files
authored
docs(useQuery): change manual to enabled (#1167)
1 parent f4b2bdc commit 7abc26a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/pages/reference/useQuery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const result = useQuery({
153153
- `idle` if the query is idle. This only happens if a query is initialized with `enabled: false` and no initial data is available.
154154
- `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`
155155
- `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 query is 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.
157157
- `isIdle: boolean`
158158
- A derived boolean from the `status` variable above, provided for convenience.
159159
- `isLoading: boolean`
@@ -176,7 +176,7 @@ const result = useQuery({
176176
- Will be `true` if the query has been fetched after the component mounted.
177177
- This property can be used to not show any previously cached data.
178178
- `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`
180180
- Will be `true` if the query is currently fetching, including background fetching.
181181
- `failureCount: number`
182182
- The failure count for the query.

0 commit comments

Comments
 (0)