From dc2505ff405218b6e4c966602e53a7e9ebd8d7b1 Mon Sep 17 00:00:00 2001 From: Connor Barr Date: Mon, 12 Aug 2024 13:50:43 +0100 Subject: [PATCH] feat: more order history changes --- .../components/complex/orders-history/index.tsx | 14 +++++++------- packages/web/hooks/limit-orders/use-orderbook.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/web/components/complex/orders-history/index.tsx b/packages/web/components/complex/orders-history/index.tsx index 0808abfb00..0255db6e3c 100644 --- a/packages/web/components/complex/orders-history/index.tsx +++ b/packages/web/components/complex/orders-history/index.tsx @@ -295,14 +295,14 @@ export const OrderHistory = observer(() => { }) )} + { + if (hasNextPage && !isFetchingNextPage && !isLoading) { + fetchNextPage(); + } + }} + /> - { - if (hasNextPage && !isFetchingNextPage && !isLoading) { - fetchNextPage(); - } - }} - /> {isLargeScreen && ( 0, refetchOnMount: true, - keepPreviousData: true, + keepPreviousData: false, trpc: { abortOnUnmount: true, context: {