Skip to content

Commit

Permalink
fix: keep ofac query data for 24h
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
compojoom committed Sep 19, 2024
1 parent bf53aea commit 667b858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/ofac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const ofacApi = createApi({
return { error: { status: 'CUSTOM_ERROR', data: (error as Error).message } }
}
},
keepUnusedDataFor: 24 * 60 * 60, // 24 hours
}),
}),
})
Expand Down

0 comments on commit 667b858

Please sign in to comment.