From a849c3b55471885758d1aadf1c0a48ac4cd7be9b Mon Sep 17 00:00:00 2001 From: Bran <52735957+brancoder@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:47:05 +0100 Subject: [PATCH] fix(wallet-dashboard): clear queries on network change (#4548) --- 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 (