Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cancel requisitions on page transitions #296
This is a delicate but important enhancement that we should look forward to implement on the admin panel code.
When transitioning from one page to the other, if that previous component started ajax requisitions that were not concluded, we're not canceling them with axios. Although usually page transitions in forms usually only happens after a promise is fulfilled, there are other cases. The worst that I can mention, is the Repository Item's page. If you have a lot of collections with a lot of filters, that page never finishes loading it's facets. This loads the http queue easily.
So we should watch router changes and alert the component to cancel requests in case the user goes away from it, or even apply some filter... it's not easy to map all the possible conditions where this happens, but I think it should be done.