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, },