From 63138b9e787ac7974ddd19af737a5e605fd1fbde Mon Sep 17 00:00:00 2001 From: martinshub-tech Date: Mon, 31 Aug 2026 08:54:52 +0100 Subject: [PATCH] fix: surface toast on refreshStreamData failure --- lib/queryClient.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/queryClient.ts b/lib/queryClient.ts index 080db99..c8c3fb9 100644 --- a/lib/queryClient.ts +++ b/lib/queryClient.ts @@ -1,5 +1,6 @@ import { QueryClient } from '@tanstack/react-query'; import { queryKeys } from './query-keys'; +import toast from 'react-hot-toast'; export function makeQueryClient(): QueryClient { return new QueryClient({ @@ -47,5 +48,6 @@ export async function refreshStreamData(): Promise { ]); } catch (error) { console.warn('Failed to refresh stream data after a transaction.', error); + toast.error('Failed to refresh data. Please refresh the page manually.'); } }