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

+2 -2
View File
@@ -5,12 +5,12 @@ import getQueryClient from '@/lib/queryClient';
import Container from './container';
const Random = async () => {
const Random = () => {
const queryClient = getQueryClient();
const page = generatePage();
await queryClient.prefetchInfiniteQuery(randomQuery({ page, suspense: false }));
queryClient.prefetchInfiniteQuery(randomQuery({ page }));
return (
<HydrationBoundary state={dehydrate(queryClient)}>