fix: search autocomplete
This commit is contained in:
1 parent
91f8b4fc1e
commit
a747461505
6 files changed
+43
-14
No files matched your search
@@ -22,5 +22,3 @@ export default async function Starring({ searchParams }: { searchParams: Record<
|
||||
</HydrationBoundary>
|
||||
);
|
||||
}
|
||||
|
||||
export const revalidate = 3600;
|
||||
@@ -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;
|
||||
+1
-3
@@ -32,9 +32,7 @@ const RootLayout = ({ children }: { children: ReactNode }) => {
|
||||
</head>
|
||||
<body style={font.style}>
|
||||
<Providers theme={theme}>
|
||||
<div className='sticky top-0 z-20'>
|
||||
<Header />
|
||||
</div>
|
||||
<Header className='sticky top-0 z-20' />
|
||||
<main className='container'>{children}</main>
|
||||
</Providers>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user