Skip to content

Commit

Permalink
Merge branch 'main' into test-lib-caching
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Mar 11, 2023
2 parents d9651d1 + b8b0562 commit 7995733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/react/guides/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The `result` object contains a few very important states you'll need to be aware
Beyond those primary states, more information is available depending on the state of the query:

- `error` - If the query is in an `isError` state, the error is available via the `error` property.
- `data` - If the query is in a `success` state, the data is available via the `data` property.
- `data` - If the query is in an `isSuccess` state, the data is available via the `data` property.

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:

Expand Down

0 comments on commit 7995733

Please sign in to comment.