From 6536e8168de348164d9f489689bffa4a827467d6 Mon Sep 17 00:00:00 2001 From: Onno Visser <23527729+onnovisser@users.noreply.github.com> Date: Mon, 23 Oct 2023 13:57:15 +0200 Subject: [PATCH] disable suspense --- centrifuge-app/src/utils/usePools.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/centrifuge-app/src/utils/usePools.ts b/centrifuge-app/src/utils/usePools.ts index 8ad9e5ae41..3761f24595 100644 --- a/centrifuge-app/src/utils/usePools.ts +++ b/centrifuge-app/src/utils/usePools.ts @@ -65,12 +65,8 @@ export function useAllTransactions(address?: string) { } export function useInvestorTransactions(poolId: string, trancheId?: string, from?: Date, to?: Date) { - const [result] = useCentrifugeQuery( - ['investorTransactions', poolId, trancheId, from, to], - (cent) => cent.pools.getInvestorTransactions([poolId, trancheId, from, to]), - { - suspense: true, - } + const [result] = useCentrifugeQuery(['investorTransactions', poolId, trancheId, from, to], (cent) => + cent.pools.getInvestorTransactions([poolId, trancheId, from, to]) ) return result @@ -81,7 +77,6 @@ export function useBorrowerTransactions(poolId: string, from?: Date, to?: Date) ['borrowerTransactions', poolId, from, to], (cent) => cent.pools.getBorrowerTransactions([poolId, from, to]), { - suspense: true, enabled: !poolId.startsWith('0x'), } ) @@ -119,7 +114,6 @@ export function useBorrowerAssetTransactions(poolId: string, assetId: string, fr ) }, { - suspense: true, enabled: !!pool && !poolId.startsWith('0x') && !!loan, } )