Back to Pull RequestsView on GitHub
#1080Closed
Moderate Review
Make sure fetches are aborted if ancestors are removed from dom
by gazpachoking•Oct 22, 2025
Summary
This PR introduces a global mutation observer to automatically abort `@fetch` requests when their associated DOM elements or any of their ancestors are removed. It also ensures that fetches explicitly disabled for cancellation or those with custom abort controllers are not prematurely aborted.
Changes
+25 additions-28 deletions
Impact Areas
Fetch handlingDOM manipulationResource management