fix: search autocomplete

This commit is contained in:
ner committed 2024-10-15 20:06:10 +03:00
1 parent 91f8b4fc1e
commit a747461505
6 files changed
+43 -14

No files matched your search

-2
View File
@@ -22,5 +22,3 @@ export default async function Starring({ searchParams }: { searchParams: Record<
</HydrationBoundary>
);
}
export const revalidate = 3600;
+1 -3
View File
@@ -7,9 +7,7 @@ const useStarring = ({ actorId }: { actorId?: string }) =>
useInfiniteList({
queryKey: ['starring', actorId],
enabled: Boolean(actorId),
queryFn: ({ page }) => {
return topMovies({ page, starring: actorId });
}
queryFn: ({ page }) => topMovies({ page, starring: actorId })
});
export default useStarring;