mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Fix the whole UI blowing up when changing relays
This commit is contained in:
4 files changed
+4
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user