From bf0b99d0ee3d2bfb80aab6e024c8e6c48b8ab99a Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Tue, 3 Dec 2024 09:26:17 +0100 Subject: [PATCH] Turn off polling in tokens list --- .changelog/1642.trivial.md | 1 + src/app/pages/TokensOverviewPage/index.tsx | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .changelog/1642.trivial.md diff --git a/.changelog/1642.trivial.md b/.changelog/1642.trivial.md new file mode 100644 index 000000000..a3a0de11f --- /dev/null +++ b/.changelog/1642.trivial.md @@ -0,0 +1 @@ +Turn off polling in tokens list diff --git a/src/app/pages/TokensOverviewPage/index.tsx b/src/app/pages/TokensOverviewPage/index.tsx index d3322524f..835575893 100644 --- a/src/app/pages/TokensOverviewPage/index.tsx +++ b/src/app/pages/TokensOverviewPage/index.tsx @@ -5,7 +5,7 @@ import { useScreenSize } from '../../hooks/useScreensize' import { PageLayout } from '../../components/PageLayout' import { SubPageCard } from '../../components/SubPageCard' import { Layer, useGetRuntimeEvmTokens } from '../../../oasis-nexus/api' -import { NUMBER_OF_ITEMS_ON_SEPARATE_PAGE, REFETCH_INTERVAL } from '../../config' +import { NUMBER_OF_ITEMS_ON_SEPARATE_PAGE } from '../../config' import { useSearchParamsPagination } from '../../components/Table/useSearchParamsPagination' import { AppErrors } from '../../../types/errors' import { TableLayout, TableLayoutButton } from '../../components/TableLayoutButton' @@ -46,7 +46,6 @@ export const TokensPage: FC = () => { }, { query: { - refetchInterval: REFETCH_INTERVAL, // Keep showing data while loading more keepPreviousData: tableView === TableLayout.Vertical, },