From c5a515c2953153d25bc9392b9676d91c83d1194d Mon Sep 17 00:00:00 2001 From: Sergey Kintsel Date: Mon, 8 Apr 2024 13:37:59 +0100 Subject: [PATCH] Fix no operations error on window refocus --- src/views/operations/useGetOperations.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/operations/useGetOperations.tsx b/src/views/operations/useGetOperations.tsx index faba56ee9c..8c15a5ed91 100644 --- a/src/views/operations/useGetOperations.tsx +++ b/src/views/operations/useGetOperations.tsx @@ -69,6 +69,7 @@ export const useGetOperations = (accounts: Account[]) => { retry: 3, retryDelay: retryCount => retryCount * 2000, gcTime: 0, + refetchOnWindowFocus: false, // next page here means the older operations // whilst previous page means the newer operations // that's done that way because react-query prepends