Javascript – Need to make a call to one api only once when the page is loaded and once when the same page is unloaded (e.g. user switch to other page)
I want to make a "single" call to one API when particular page is loaded (on Load) and later when user navigate to some other page then I want to make another call (on un load) using react component. I…