We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2778b8f + dacce1d commit 9e2475fCopy full SHA for 9e2475f
packages/dappmanager/src/calls/chainDataGet.ts
@@ -1,16 +1,6 @@
1
-import memoize from "memoizee";
2
import { getChainsData } from "@dappnode/chains";
3
import { ChainData } from "@dappnode/common";
4
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
-
14
export async function chainDataGet(): Promise<ChainData[]> {
15
- return await getChainsDataMemo();
+ return await getChainsData();
16
}
0 commit comments