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 b85d2d0 commit e96e7e6
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, // 2
}),
}),
})
Expand Down

0 comments on commit e96e7e6

Please sign in to comment.