From 3c7ec3089b32659849ce66f690983126eda30ab4 Mon Sep 17 00:00:00 2001 From: Branko Date: Wed, 18 Dec 2024 14:01:01 +0100 Subject: [PATCH] fix: clear queries when netowrk is changed --- apps/wallet-dashboard/providers/AppProviders.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/wallet-dashboard/providers/AppProviders.tsx b/apps/wallet-dashboard/providers/AppProviders.tsx index 46d69758c94..26be321a43b 100644 --- a/apps/wallet-dashboard/providers/AppProviders.tsx +++ b/apps/wallet-dashboard/providers/AppProviders.tsx @@ -21,6 +21,7 @@ export function AppProviders({ children }: React.PropsWithChildren) { const defaultNetwork = getDefaultNetwork(); function handleNetworkChange() { queryClient.resetQueries(); + queryClient.clear(); } return (