Skip to content

Commit bcecb54

Browse files
authored
(docs): fixed small errors (TanStack#636)
1 parent ce25ffa commit bcecb54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ const [mutate] = useMutation(addTodo, {
14071407
})
14081408
```
14091409
1410-
The promise returned by `mutate()` can be helpful as well for performing more granualar control flow in your app, and if you prefer that that promise only resolves **after** the `onSuccess` or `onSettled` callbacks, you can return a promise in either!:
1410+
The promise returned by `mutate()` can be helpful as well for performing more granular control flow in your app, and if you prefer that that promise only resolves **after** the `onSuccess` or `onSettled` callbacks, you can return a promise in either!:
14111411
14121412
```js
14131413
const [mutate] = useMutation(addTodo, {
@@ -1831,7 +1831,7 @@ const queryInfo = useQuery({
18311831
18321832
- `status: String`
18331833
- Will be:
1834-
- `idle` if the query is idle. This only happens if a query is initialized with `enabled: false` and no inital data is available.
1834+
- `idle` if the query is idle. This only happens if a query is initialized with `enabled: false` and no initial data is available.
18351835
- `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`
18361836
- `error` if the query attempt resulted in an error. The corresponding `error` property has the error received from the attempted fetch
18371837
- `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.

0 commit comments

Comments
 (0)