From 43877a4eb69a629ff1341c659381c5f59d3d7a3f Mon Sep 17 00:00:00 2001 From: "Calum H. (IMB11)" Date: Wed, 14 Oct 2026 12:21:04 +0100 Subject: [PATCH] fix: ignore cancelled errors --- packages/ui/src/providers/web-notifications.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/ui/src/providers/web-notifications.ts b/packages/ui/src/providers/web-notifications.ts index f132c0d6f2..fdb55f8ed9 100644 --- a/packages/ui/src/providers/web-notifications.ts +++ b/packages/ui/src/providers/web-notifications.ts @@ -1,3 +1,4 @@ +import { isCancelledError } from '@tanstack/vue-query' import type { Component } from 'vue' import { createContext } from '.' @@ -57,9 +58,13 @@ export abstract class AbstractWebNotificationManager { } /** + * Query cancellations (e.g. navigating away mid-fetch) are ignored, as they are not user-facing failures. + * * @deprecated You should use `addNotification` instead to provide a more human-readable error message to the user. */ handleError = (error: Error): void => { + if (isCancelledError(error)) return + this.addNotification({ title: 'An error occurred', text: error.message ?? error,