I’m using a common class for controlling all the loaders and alerts throughout the app. For this, sometimes a loader overlaps with other loader/alert? How do I check, If there is already a loader/alert running on the page? Like if(Loader){this.loader.dismiss();}
Try using session storage to tell if one alert is open or present.