# runtime errors

Errors that occur during program execution.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## 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..."

## Use react-error-boundary to handle errors in React

DevFeed: [Use react-error-boundary to handle errors in React](<https://devfeed.tech/articles/use-react-error-boundary-to-handle-errors-in-react-51906.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/use-react-error-boundary-to-handle-errors-in-react>)

Published: 2020-07-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Error Handling](<https://devfeed.tech/topics/error-handling.md>), [runtime errors](<https://devfeed.tech/topics/runtime-errors.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

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

### AI overview

A tutorial on using react-error-boundary to handle runtime errors in React applications. It explains why ordinary JavaScript error handling does not catch errors during React rendering and shows how error boundaries can provide scoped recovery.

### Source excerpt

How to simplify your React apps by handling React errors effectively with react-error-boundary

## Service locator: an anti-pattern

DevFeed: [Service locator: an anti-pattern](<https://devfeed.tech/articles/service-locator-an-anti-pattern-44266.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/service-locator-anti-pattern>)

Author: Brent

Published: 2018-08-10T00:00:00Z

Content type: opinion

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [runtime errors](<https://devfeed.tech/topics/runtime-errors.md>), [Code](<https://devfeed.tech/topics/code.md>), [container](<https://devfeed.tech/topics/container.md>), [class](<https://devfeed.tech/topics/class.md>), [ide](<https://devfeed.tech/topics/ide.md>)

Tags: [class](<https://devfeed.tech/tags/class.md>), [code](<https://devfeed.tech/tags/code.md>), [ide](<https://devfeed.tech/tags/ide.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [runtime-errors](<https://devfeed.tech/tags/runtime-errors.md>)

### AI overview

A Laravel developer examines the service locator pattern and argues that retrieving dependencies from the service container can increase runtime errors, obscure a class's dependencies, and raise cognitive load. The article contrasts runtime failures with errors detectable at compile time or through IDE and static analysis tools.

### Source excerpt

Read the full post on https://stitcher.io/blog/service-locator-anti-pattern