nostr-react
will now dynamically connect and disconnect to relays if they are updated in the NostrProvider
:
const CustomProvider = observer(({ children }) => {
const { userStore } = useStores();
return (
<NostrProvider relayUrls={userStore.relays} debug={true}>
{children}
</NostrProvider>
);
return <>{children}</>;
});
Thx to @aussedatlo for getting this feature working! 👍