Relative Content

Tag Archive for reactjsasync-awaitreact-routerreact-router-dom

React form submission not triggering rerender after route change

I have a React form component where upon submission, I make an API call and then navigate to another page using navigate() from React Router. However, I’m facing an issue where the route changes but the page doesn’t rerender properly. Strangely, if I submit the form again, it works fine.