How to prevent component remounting and state updating on route change
Hi, I am calling API in componentDidMount and setting data to state but when i change to another route (no page refresh) and coming back API gets called again and state is updating. This is causing problem since data is huge. Please help me to stop API call or state updating if i go to another route and comeback.