mirror of
https://github.com/t4t5/nostr-react.git
synced 2025-09-17 13:18:54 +02:00
Update nostr-tools version
This commit is contained in:
@@ -68,6 +68,6 @@
|
||||
"typescript": "^4.9.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"nostr-tools": "^1.0.1"
|
||||
"nostr-tools": "^1.1.0"
|
||||
}
|
||||
}
|
||||
|
@@ -127,7 +127,7 @@ export function useNostr() {
|
||||
export function useNostrEvents({ filter }: { filter: Filter }) {
|
||||
const { isLoading, onConnect, debug, connectedRelays } = useNostr()
|
||||
const [events, setEvents] = useState<NostrEvent[]>([])
|
||||
const [unsubscribe, setUnsubscribe] = useState(() => {
|
||||
const [unsubscribe, setUnsubscribe] = useState<() => void | void>(() => {
|
||||
return
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user