Skip to content

Commit cc99426

Browse files
authored
docs: fix typos in migration and queries guide (#1387)
Fix typos in guides/migrating-to-react-query-3 and guides/queries. Fixes #1378
1 parent cba668a commit cc99426

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/src/pages/guides/migrating-to-react-query-3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ The `ReactQueryCacheProvider` component has been replaced by the `QueryClientPro
274274
275275
### makeQueryCache()
276276
277-
The `makeQueryCache()` function has replaced by `new QueryCache()`.
277+
The `makeQueryCache()` function has been replaced by `new QueryCache()`.
278278
279279
### ReactQueryErrorResetBoundary
280280

docs/src/pages/guides/queries.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ const result = useQuery('todos', fetchTodoList)
3232

3333
The `result` object contains a few very important states you'll need to be aware of to be productive. A query can only be in one of the following states at any given moment:
3434

35-
- `isLoading` or `status === 'loading' - The query has no data and is currently fetching
35+
- `isLoading` or `status === 'loading'` - The query has no data and is currently fetching
3636
- `isError` or `status === 'error'` - The query encountered an error
37-
- `isSuccess` or `status === 'success' - The query was successful and data is available
38-
- `isIdle` or `status === 'idle' - The query is currently disabled (you'll learn more about this in a bit)
37+
- `isSuccess` or `status === 'success'` - The query was successful and data is available
38+
- `isIdle` or `status === 'idle'` - The query is currently disabled (you'll learn more about this in a bit)
3939

4040
Beyond those primary state, more information is available depending on the state the query:
4141

4242
- `error` - If the query is in an `isError` state, the error is available via the `error` property.
4343
- `data` - If the query is in a `success` state, the data is available via the `data` property.
4444
- `isFetching` - In any state, if the query is fetching at any time (including background refetching) `isFetching` will be `true`.
4545

46-
For **most** queries, it's usually sufficient to check for the `isLoading` state, then the `isError` state, then finally, assume that the data is avaiable and render the successful state:
46+
For **most** queries, it's usually sufficient to check for the `isLoading` state, then the `isError` state, then finally, assume that the data is available and render the successful state:
4747

4848
```js
4949
function Todos() {

0 commit comments

Comments
 (0)