wikitree / wikitree-dynamic-tree

Dynamically generated and browsed graphical family tree
MIT License
26 stars 20 forks source link

Add AbortController #250

Closed harrislineage closed 1 month ago

harrislineage commented 1 month ago

Added an AbortController to stop API requests when the view closes. Re-initializing the view creates a new AbortController, allowing it to work after being closed. The close method now cancels ongoing requests and prevents further processing. Added a check to ensure no data is processed after a request is aborted, ensuring the view can stop and restart properly.

Fixes Issue #185