Implement video feed feature with components, hooks, and utility functions

This commit is contained in:
2025-12-22 12:19:00 +00:00
parent 276dcd26ed
commit 45e6a3286c
13 changed files with 313 additions and 16 deletions

View File

@@ -7,6 +7,7 @@ export const useSightingList = () => {
const { videoFeedQuery } = useVideoFeed();
const latestSighting = videoFeedQuery?.data;
const lastProcessedRef = useRef<number>(-1);
const isLoading = videoFeedQuery?.isPending;
useEffect(() => {
if (!latestSighting || latestSighting.ref === undefined || latestSighting.ref === -1) return;
@@ -22,5 +23,5 @@ export const useSightingList = () => {
});
}
}, [latestSighting, latestSighting?.ref]);
return { sightingList };
return { sightingList, isLoading };
};