feat: proxy cache
This commit is contained in:
1 parent
32e7885791
commit
995342f18a
9 files changed
+17
-28
No files matched your search
@@ -1,11 +0,0 @@
|
||||
import { Loader } from 'lucide-react';
|
||||
|
||||
const Loading = () => (
|
||||
<div className='flex min-h-[70vh] w-full items-center justify-center'>
|
||||
<div className='animate-spin'>
|
||||
<Loader />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
export default Loading;
|
||||
+2
-2
@@ -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)}>
|
||||
|
||||
Reference in new issue
Block a user