wikitree-dynamic-tree icon indicating copy to clipboard operation
wikitree-dynamic-tree copied to clipboard

Portraits view continues processing images even when navigating to new views

Open harrislineage opened this issue 2 years ago • 1 comments

Describe the bug When navigating away from the portraits view, the process is not stopped and images continue to load to new views.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Portraits view as Clarke-1107' (needs pagination in getPeople to retreive all ancestors
  2. Ass soon as images start to display, navigate to any other view
  3. See error - images continue to load from portraits app, either overlapping or below new view content

Expected behavior Portraits view should stop processing on view change, possibly using close event?

Screenshots image

harrislineage avatar Oct 19 '23 15:10 harrislineage

You might know this already, but there is a close() method on View() that you can implement in your derived View class to then abort your API call using javascript's AbortController.

udjeni avatar Oct 20 '23 05:10 udjeni