mirror of
https://github.com/t4t5/nostr-react.git
synced 2025-03-17 21:41:42 +01:00
Add "debug" param to README example
This commit is contained in:
parent
ae1c36e6dc
commit
2481d20e41
@ -22,7 +22,7 @@ const relayUrls = [
|
||||
|
||||
function MyApp() {
|
||||
return (
|
||||
<NostrProvider relayUrls={relayUrls}>
|
||||
<NostrProvider relayUrls={relayUrls} debug>
|
||||
<App />
|
||||
</NostrProvider>
|
||||
);
|
||||
|
@ -54,7 +54,7 @@ export function NostrProvider({
|
||||
useEffect(() => {
|
||||
const { sendEvent: _sendEvent } = initNostr({
|
||||
relayUrls,
|
||||
onConnect: (url: string, sendEvent) => {
|
||||
onConnect: (url, sendEvent) => {
|
||||
setIsLoading(false)
|
||||
|
||||
if (onConnectCallback) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user