uwazi icon indicating copy to clipboard operation
uwazi copied to clipboard

Interrumpt requests on navigation or component unmount

Open Zasa-san opened this issue 1 year ago • 0 comments

When a request for a resource is initiated (for example, a PDF in the document view) the request will continue if the user navigates away, or if the component is unmounted.

This can be noticed by simulating a slow connection and navigating to an entity view for an entity that has a large PDF file as the main document. The document will take time to render, and if the user wants to navigate away from the view before that, the navigation will not occur until the PDF request is done.

This also affects libraries with images on the cards, until all the images finish downloading the user is stuck loading the library and can't navigate away.

When a request initiator unmounts (assuming it’s a component), the request should abort.

Zasa-san avatar Nov 30 '23 18:11 Zasa-san