From 095df38e7ea1af099ca05d9972ac2e79a3a6e66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D0=BE=D0=B2=20=D0=90=D1=80=D1=82?= =?UTF-8?q?=D0=B5=D0=BC?= Date: Sun, 5 Jul 2026 05:48:07 +0300 Subject: [PATCH] =?UTF-8?q?BUR-63=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20abortSignal=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B5=D0=BA=D1=80=D0=B0=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20"?= =?UTF-8?q?=D0=BD=D0=B5=20=D1=83=D1=81=D0=BF=D0=B5=D0=B2=D1=88=D0=B8=D1=85?= =?UTF-8?q?"=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=BE=D0=B2=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D1=82=D0=B5=D0=B3=D0=B0=D0=BC=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=81=D1=82=D1=82=D0=B0=D1=80=D1=82=D0=B5=20=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=B0?= =?UTF-8?q?=20=D0=B4=D0=B8=D0=B0=D0=BF=D0=B7=D0=BE=D0=BD=D0=B0=20=D0=B4?= =?UTF-8?q?=D0=B0=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/history/api.ts | 4 ++-- src/features/edge-detail/components/ArchiveView.tsx | 2 +- src/features/history-chart/useHistoryChartQueries.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/entities/history/api.ts b/src/entities/history/api.ts index c96e79a..fedaa81 100644 --- a/src/entities/history/api.ts +++ b/src/entities/history/api.ts @@ -3,6 +3,6 @@ import { cloudApiUrl } from '../../shared/config/env'; import type { HistoryRequest, HistoryResponse } from './types'; /** Запрашивает исторический ряд с avg-линией и min/max-диапазоном для графика. */ -export function getHistory(params: HistoryRequest): Promise { - return getJson(cloudApiUrl, '/history', params); +export function getHistory(params: HistoryRequest, signal?: AbortSignal): Promise { + return getJson(cloudApiUrl, '/history', params, { signal }); } diff --git a/src/features/edge-detail/components/ArchiveView.tsx b/src/features/edge-detail/components/ArchiveView.tsx index 0111966..9c5909d 100644 --- a/src/features/edge-detail/components/ArchiveView.tsx +++ b/src/features/edge-detail/components/ArchiveView.tsx @@ -254,7 +254,7 @@ export function ArchiveView({ {selectedTags.length ? ( ({ queryKey: ['history', edge, tag, from, to, granulate], - queryFn: () => getHistory({ edge, tag, from, to, granulate }), + queryFn: ({ signal }: { signal: AbortSignal }) => getHistory({ edge, tag, from, to, granulate }, signal), enabled, })), }); -- 2.49.1