improve relay connection

This commit is contained in:
2023-11-16 07:59:29 +07:00
parent 875225591a
commit b41ec353c6
5 changed files with 27 additions and 6 deletions

View File

@@ -12,14 +12,14 @@ import { QUOTES } from '@stores/constants';
interface NDKContext {
ndk: undefined | NDK;
fetcher: undefined | NostrFetcher;
relayUrls: string[];
fetcher: NostrFetcher;
}
const NDKContext = createContext<NDKContext>({
ndk: undefined,
relayUrls: [],
fetcher: undefined,
relayUrls: [],
});
const NDKProvider = ({ children }: PropsWithChildren<object>) => {