Fix the whole UI blowing up when changing relays

This commit is contained in:
Alex Gleason committed 2025-10-16 18:41:18 -05:00
1 parent d2a668e3ee
commit 9f32bb135b
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ const NostrProvider: React.FC<NostrProviderProps> = (props) => {
// Update refs when config changes
useEffect(() => {
relayUrl.current = config.relayUrl;
queryClient.resetQueries();
queryClient.invalidateQueries({ queryKey: ['nostr'] });
}, [config.relayUrl, queryClient]);
// Initialize NPool only once