Skip to content

Commit 270a061

Browse files
committed
Refactor R1MintedLastEpoch: remove caching from fetch function.
1 parent 8cba2d6 commit 270a061

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/server-components/R1MintedLastEpoch.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import { getNextEpochTimestamp } from '@/config';
22
import { getServerConfig } from '@/config/serverConfig';
33
import { getSSURL } from '@/lib/actions';
44
import { differenceInSeconds } from 'date-fns';
5-
import { cache } from 'react';
65
import { formatUnits } from 'viem';
76

8-
const fetchCachedR1MintedLastEpoch = cache(async () => {
7+
const fetchCachedR1MintedLastEpoch = async () => {
98
const url = await getSSURL('r1-minted-last-epoch');
109
const { config } = await getServerConfig();
1110

@@ -18,7 +17,7 @@ const fetchCachedR1MintedLastEpoch = cache(async () => {
1817
} = await res.json();
1918

2019
return data.value;
21-
});
20+
};
2221

2322
export default async function R1MintedLastEpoch() {
2423
let value: string | undefined;

0 commit comments

Comments
 (0)