diff options
author | Sebastian <sebasjm@gmail.com> | 2024-04-05 10:30:19 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-04-05 10:30:34 -0300 |
commit | 70151490bd79d38f8064b720fc124d1774a18235 (patch) | |
tree | 3d3238bf02743d38b243581457130804939f0473 /packages/bank-ui/src/utils.ts | |
parent | 493fe38a603cc7a54a9d36b235da7abad3a10a92 (diff) | |
download | wallet-core-70151490bd79d38f8064b720fc124d1774a18235.tar.xz |
fix listing, add cache invalidation, fix codec for accounts
Diffstat (limited to 'packages/bank-ui/src/utils.ts')
-rw-r--r-- | packages/bank-ui/src/utils.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/bank-ui/src/utils.ts b/packages/bank-ui/src/utils.ts index 305f13803..2cc502416 100644 --- a/packages/bank-ui/src/utils.ts +++ b/packages/bank-ui/src/utils.ts @@ -120,7 +120,11 @@ export enum CashoutStatus { PENDING = "pending", } -export const PAGE_SIZE = 5; + +export const PAGINATED_LIST_SIZE = 5; +// when doing paginated request, ask for one more +// and use it to know if there are more to request +export const PAGINATED_LIST_REQUEST = PAGINATED_LIST_SIZE + 1; type Translator = ReturnType<typeof useTranslationContext>["i18n"]; |