wikitree-dynamic-tree
wikitree-dynamic-tree copied to clipboard
Portraits view continues processing images even when navigating to new views
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:
- Go to 'Portraits view as Clarke-1107' (needs pagination in getPeople to retreive all ancestors
- Ass soon as images start to display, navigate to any other view
- 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
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.