skip to Main Content

Reactjs – How to avoid "Too many re-renders. React limits the number of renders to prevent an infinite loop."

I am using react typescript, redux toolkit and material UI. I am getting this error in while calling the API: Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. at renderWithHooks (http://127.0.0.1:5173/node_modules/.vite/deps/chunk-QJV3R4PZ.js?v=8a99eba5:12178:23) at mountIndeterminateComponent…

VIEW QUESTION

react-router-dom & nginx -> path /equipe/:id return index.html

I use react-router-dom in my react application like this: import {BrowserRouter, Route, Routes} from "react-router-dom"; // other code... ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( <BrowserRouter> <Routes> <Route path="equipe" element={<Equipe/>}/> <Route path="equipe/:id" element={<Equipe/>}/> {/*other route...*/} </Routes> </BrowserRouter> ); I specify that by launching my…

VIEW QUESTION
Back To Top
Search