feat: proxy cache

This commit is contained in:
ner committed 2024-11-03 17:42:40 +02:00
1 parent 32e7885791
commit 995342f18a
9 files changed
+17 -28

No files matched your search

-1
View File
@@ -9,7 +9,6 @@ export const generatePage = createUniqueRandomGenerator(TOTAL_PAGES);
export type RandomQueryProps = {
page: number;
suspense: boolean;
};
const randomQuery = ({ page }: RandomQueryProps) => ({
-1
View File
@@ -7,7 +7,6 @@ export type SimilarQueryProps = {
};
const similarQuery = ({ showId, showType }: SimilarQueryProps) => ({
enabled: Boolean(showId),
queryKey: ['similar', showId, showType],
initialPageParam: '1',
queryFn: ({ pageParam = '1' }: { pageParam?: string }) =>