-address fixes and changes per feedback from Matt and Brad

This commit is contained in:
2025-11-05 16:30:27 +00:00
parent 861f2dd31d
commit d57ad1003a
15 changed files with 215 additions and 63 deletions

View File

@@ -12,7 +12,7 @@ import { useCachedSoundSrc } from "./usecachedSoundSrc";
async function fetchSighting(url: string | undefined, ref: number): Promise<SightingType> {
const res = await fetch(`${url}${ref}`, {
signal: AbortSignal.timeout(5000),
signal: AbortSignal.timeout(300000),
});
if (!res.ok) throw new Error(String(res.status));
return res.json();
@@ -48,7 +48,7 @@ export function useSightingFeed(url: string | undefined) {
return 100;
}
if (now - lastValidTimestamp.current > 60_000) {
if (now - lastValidTimestamp.current > 600_000) {
currentRef.current = -1;
lastValidTimestamp.current = now;
}