mirror of
https://github.com/t4t5/nostr-react.git
synced 2025-05-04 02:50:15 +02:00
Update nostr-tools version
This commit is contained in:
parent
3519efe941
commit
e565a176e3
@ -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
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user