From ed9874f4d0b327a09aaed28717d98be787f0ebf6 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Tue, 5 Mar 2024 19:10:31 +0000
Subject: extension: Fix the infinite loading of the options page

---
 packages/browser-extension/src/utils/providers.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'packages/browser-extension/src/utils/providers.tsx')

diff --git a/packages/browser-extension/src/utils/providers.tsx b/packages/browser-extension/src/utils/providers.tsx
index d21714b6..d20f2512 100644
--- a/packages/browser-extension/src/utils/providers.tsx
+++ b/packages/browser-extension/src/utils/providers.tsx
@@ -35,7 +35,11 @@ export function Providers({ children }: { children: React.ReactNode }) {
   }, [settings.address]);
 
   return (
-    <api.Provider client={trpcClient} queryClient={queryClient}>
+    <api.Provider
+      key={settings.address}
+      client={trpcClient}
+      queryClient={queryClient}
+    >
       <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
     </api.Provider>
   );
-- 
cgit v1.3-1-g0d28

