Update nostr-tools version

This commit is contained in:
Tristan Edwards 2022-12-27 23:24:49 +01:00
parent 3519efe941
commit e565a176e3
2 changed files with 2 additions and 2 deletions

View File

@ -68,6 +68,6 @@
"typescript": "^4.9.4"
},
"dependencies": {
"nostr-tools": "^1.0.1"
"nostr-tools": "^1.1.0"
}
}

View File

@ -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
})