How to avoid re-fetching query after resource is deleted - TanStack