From cd0e4b8613c5f0fe9acdbb07853414a848659049 Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov Date: Thu, 19 Sep 2024 10:37:59 +0200 Subject: [PATCH] fix: keep ofac query data for 24h Currently once we do the ofac check the data will be discarded after 60s (if no active listeners) and whenever we navigate to a page that needs that data a new call to the rpc is going to be made. With this change the data will be kept for up to 24h (if no active listener). --- src/store/ofac.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/store/ofac.ts b/src/store/ofac.ts index 125969ff5b..0982ce5c9d 100644 --- a/src/store/ofac.ts +++ b/src/store/ofac.ts @@ -62,6 +62,7 @@ export const ofacApi = createApi({ return { error: { status: 'CUSTOM_ERROR', data: (error as Error).message } } } }, + keepUnusedDataFor: 24 * 60 * 60, // 24 hours }), }), })