when I update data using API the state in redux not updating immediately but should I reload the page to view the values updating ???
I get already the data but if I want the new values of data must be reload page, what can I do to refactor the component and re render it
Hazem-Alsaqaan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
in data fetching you use redux saga for immediately updating the data else you can you redux toolkit method for this problem
that is reffernce for this problem https://www.geeksforgeeks.org/how-to-handle-data-fetching-in-react-redux-applications/
Yash Rakholiya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.