mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
Deleting a medication from the danger zone awaited a prefix-invalidate of the "medications" key bundle before navigating. That bundle covers the detail page's own active query, so the invalidation refetched the just- deleted resource, hit a 404, retried with backoff, and never resolved — the confirm button spun forever even though the delete had persisted. Evict the detail query before invalidating, navigate to the list first, then fire-and-forget the dependent-bundle invalidation. The busy state is also cleared on the failed-response path. The detail query opts out of retries so a deleted-resource refetch never burns a backoff cycle.