diff --git a/package.json b/package.json index fc9f0b9..f2a1fe2 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,6 @@ "typescript": "^4.9.4" }, "dependencies": { - "nostr-tools": "^1.0.1" + "nostr-tools": "^1.1.0" } } diff --git a/src/index.tsx b/src/index.tsx index 58fb814..8335b48 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -127,7 +127,7 @@ export function useNostr() { export function useNostrEvents({ filter }: { filter: Filter }) { const { isLoading, onConnect, debug, connectedRelays } = useNostr() const [events, setEvents] = useState([]) - const [unsubscribe, setUnsubscribe] = useState(() => { + const [unsubscribe, setUnsubscribe] = useState<() => void | void>(() => { return })