Skip to content

Commit

Permalink
disable fetch's cache on landing index
Browse files Browse the repository at this point in the history
  • Loading branch information
ejmg committed Sep 11, 2024
1 parent d264f14 commit 5687443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/app/(index)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ export default function Home() {

Promise.all([
queryClient.prefetchQuery({
queryFn: () => getTransactions({ endpoint: transactionEndpoint, pageIndex: 0 }),
queryFn: () => getTransactions({ endpoint: transactionEndpoint, pageIndex: 0, cached: false }),
queryKey: [transactionsQuery, 0],
staleTime: 0,
meta: {
errorMessage,
},
}),
queryClient.prefetchQuery({
queryFn: () => getBlocks({ endpoint: blocksEndpoint, pageIndex: 0 }),
queryFn: () => getBlocks({ endpoint: blocksEndpoint, pageIndex: 0, cached: false }),
queryKey: [blocksQuery, 0],
staleTime: 0,
meta: {
Expand Down

0 comments on commit 5687443

Please sign in to comment.