Introduction
Hello, I am using rxjs fromFetch + retry. It’s just rxjs observable but for more context I am providing it. Rxjs observable it’s just promise, but it could be unresolved in this case.
USAGE
If there is a problem with request (internet connection error or server is not responding) it waits until success, retries to request each 3 seconds and displays error for user on screen.
Problem details
So when I am closing popup, after. I am not able to open it again, also i notice higher processor usage if I am trying to reopen it, at this point observable is not resolved. When i unsubscribe it (it’s like clearInterval) inside angular ngOnDestroy by moving to next page and closing pop up then it works fine, I can reopen it as it supposed.
So I think it’s bug, could you suggest me how I can deal with it, maybe there is something called when popup is destroyed?
I am talking above about chrome extension pop up.