Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
115 views

I'm trying to understand react-error-boundary better but from what I see in the documentation I can do exactly the same thing with either only one takes a function as a parameter and the other one ...
Sathania's user avatar
  • 109
0 votes
1 answer
138 views

I'm using an Error Boundary in my React application to catch errors in child components. However, whenever an error occurs, the entire component tree under the Error Boundary gets replaced by the ...
meg's user avatar
  • 123
2 votes
0 answers
301 views

I am encountering an issue while trying to run my React Native application on Android using the command: react-native run-android The build fails with the following error: Could not determine the ...
Manan Bhasin's user avatar
1 vote
1 answer
740 views

I am trying to wrap my head around how to conveniently work with data fetching in Next.js 15 (app router) using Suspense and ErrorBoundary. Below please find my current approach. This works fine. But ...
Ben's user avatar
  • 16.8k
1 vote
0 answers
61 views

I use the react-error-boundary library, is there no way to make a global error component in it, so that when any component breaks, an error component is substituted instead, while IT is IMPORTANT that ...
user26486954's user avatar
0 votes
1 answer
1k views

Tried to use the error boundary handling feature of nextJS in this project. While it redirects to the error component, I get errors on the console. This is my test component where I force an error. ...
Sammonnay Sarcar's user avatar
0 votes
0 answers
1k views

All of our fetch work is being done in server components. When a fetch fails, we throw an error in a server component: // MyServerComponent making the fetch call try{ fetch(.....) }catch(e){ ...
user19448827's user avatar
1 vote
0 answers
1k views

Installed dependencies @tanstack/react-query: "^4.29.5" react-error-boundary: "^4.0.13" I can't seem to get Error boundaries working. I've stripped down my components to be the ...
beeboop's user avatar
  • 51
0 votes
1 answer
1k views

I'm using react-query and react-error-boundary library in my Next.js project. I've noticed that if I use the reset function within the QueryErrorResetBoundary component, it triggers a re-render. ...
minami's user avatar
  • 237
1 vote
0 answers
269 views

Let's say I had a component with the following error boundary and componentDidCatch method: return ( <ErrorBoundary componentDidCatch(error, info) { handleError(error, info); } &...
skpcc's user avatar
  • 11
-1 votes
1 answer
257 views

I am using react router v6 and react-error-boundary npm package export const routes: RouteObject[] = [ { path: "/login", element: <Login />, }, { path: "/signup&...
akshay23codes's user avatar
0 votes
1 answer
77 views

I am trying to implement ErrorBoundary from react-error-boundary like this: import React from 'react'; import { ErrorBoundary } from "react-error-boundary"; function Fallback({ error }) { ...
Louisinator's user avatar
1 vote
1 answer
1k views

<div className="textInputTag"> <span className="label">{props.label}</span> <TextField placeholder={placeholder} error={error ? true : false} ...
Vidhun's user avatar
  • 21
2 votes
1 answer
791 views

I have a ChatPage component as follows: import React from 'react' import axios from 'axios' import ErrorBoundary from './ErrorBoundary' const ChatPage = () => { const fetchChats= async()=>{ ...
Saad Farooq's user avatar
0 votes
1 answer
814 views

I am currently using React-Query and Error Boundaries to manage server side states and errors. Current behavior Query Fails throw error. (500 Server Error) ApiErrorFallback catches error, but it ...
Youngjun Woo's user avatar
3 votes
2 answers
7k views

I have a component where I am fetching mock data. I am doing a query by using react-query with Suspense. I was following their docs. This is the component: export const WorkHistory = () => { ...
Leff's user avatar
  • 1,610
2 votes
0 answers
1k views

i am building a web-app with remix-run and have a file app/utils/session.server.ts where i am accessing a sessionSecret from .env file. const sessionSecret = process.env.SESSION_SECRET; if (!...
Bryan Hain's user avatar
0 votes
0 answers
147 views

I have an ErrorBoundary class (ErrorBoundry.jsx) that looks like this:- import React, { Component } from 'react' import ErrorPage from '../../ErrorPage' const WithErrorBoundary = ({ renderError } = {}...
Sh4dy's user avatar
  • 171
-1 votes
1 answer
1k views

You are running create-react-app 4.0.3, which is behind the latest release (5.0.1). We no longer support global installation of Create React App. npx clear-npx-cache is not working for me ....plz help ...
Prathamesh mane's user avatar
2 votes
0 answers
162 views

I have a function that adds an external script dynamically. here is my code try { const script = document.createElement('script'); script.src = 'script url'; script.async = isAsync; ...
Asad Gulzar's user avatar
10 votes
1 answer
28k views

We are trying to use react-error-boundary with react-router (v6) but seems like we need to wrap every route element with an error boundary as shown below import { ErrorBoundary } from "react-...
user3205479's user avatar
  • 1,573
0 votes
1 answer
858 views

I created a website on react. I works great on localhost/3000 and no errors at all. But when I created the build by npm run build Its all js files are full of error i) Tokenization is skipped for ...
Maryam Rasheed's user avatar
0 votes
0 answers
112 views

Home.jsx useEffect(() => { fetch( `https://api.openweathermap.org/data/2.5/onecall?lat=11&lon=11&exclude=hourly,minutely&units=metric&appid=${process.env....
Ayan Nagori's user avatar
4 votes
0 answers
1k views

I've seen this Error boundaries should implement getDerivedStateFromError() topic, but it doesn't help me. I'm following the React documentation about the error boundary implementation, and it does ...
BrTkCa's user avatar
  • 4,789
1 vote
1 answer
600 views

In React Official doc when explain about Error Boundaries they encourage us to use JS error reporting services or build our own one. So I need to know is there any good error reporting service for ...
Asela Priyadarshana's user avatar