Skip to content

Commit 9e2475f

Browse files
Merge branch 'develop'
2 parents 2778b8f + dacce1d commit 9e2475f

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
import memoize from "memoizee";
21
import { getChainsData } from "@dappnode/chains";
32
import { ChainData } from "@dappnode/common";
43

5-
// Memoize this call since multiple UIs could be requesting it at once
6-
// and the info doesn't change often and might be expensive to fetch
7-
export const getChainsDataMemo = memoize(getChainsData, {
8-
// Wait for Promises to resolve. Do not cache rejections
9-
promise: true,
10-
// Cache result for 5 seconds
11-
maxAge: 5 * 1000
12-
});
13-
144
export async function chainDataGet(): Promise<ChainData[]> {
15-
return await getChainsDataMemo();
5+
return await getChainsData();
166
}

0 commit comments

Comments
 (0)