mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
Remove AbortSignal.any calls
This commit is contained in:
5 files changed
+10
-10
No files matched your search
@@ -16,12 +16,12 @@ export function useGlobalFeed() {
|
||||
|
||||
return useInfiniteQuery({
|
||||
queryKey: ['global-feed'],
|
||||
queryFn: async ({ pageParam, signal }) => {
|
||||
queryFn: async ({ pageParam }) => {
|
||||
const filter = { kinds: [1], limit: 20 };
|
||||
if (pageParam) filter.until = pageParam;
|
||||
|
||||
const events = await nostr.query([filter], {
|
||||
signal: AbortSignal.any([signal, AbortSignal.timeout(1500)])
|
||||
signal: AbortSignal.timeout(1500),
|
||||
});
|
||||
|
||||
return events;
|
||||
|
||||
Reference in new issue
Block a user