I am working on a react-router app. I am trying to programmatically change the address and then render the component. when I use history.push, the URL is updated but the component doesn't render the first time . if I click in the address bar and press enter, the component is rendered but empty. if I try the search again, the component then renders. using console.log show the search result returns an empty array the first time but returns proper result consequently(app.js line 67). Please advice
Asked
Active
Viewed 21 times
0
-
Check [this](https://stackoverflow.com/questions/55130393/component-is-not-getting-rendered-after-history-push/55133212#55133212) answer, it may help you. – Ala Hamadi Aug 07 '21 at 11:58