# React Query Error Handling

DevFeed: [React Query Error Handling](<https://devfeed.tech/articles/react-query-error-handling-48220.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/react-query-error-handling>)

Published: 2021-09-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Error Handling](<https://devfeed.tech/topics/error-handling.md>), [React](<https://devfeed.tech/topics/react.md>), [runtime errors](<https://devfeed.tech/topics/runtime-errors.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [axios](<https://devfeed.tech/topics/axios.md>), [fetch](<https://devfeed.tech/topics/fetch.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [axios](<https://devfeed.tech/tags/axios.md>), [error-handling](<https://devfeed.tech/tags/error-handling.md>), [fallback](<https://devfeed.tech/tags/fallback.md>), [fetch](<https://devfeed.tech/tags/fetch.md>), [react](<https://devfeed.tech/tags/react.md>), [runtime-errors](<https://devfeed.tech/tags/runtime-errors.md>)

## AI overview

A tutorial on handling failed asynchronous data-fetching requests in React Query. It explains rejected Promises, adapting fetch responses, component-level error states, background refetch failures, boilerplate, and React Error Boundaries.

## Source excerpt

After covering the sunshine cases of data fetching, it's time to look at situations where things don't go as planned and "Something went wrong..."