From 137a621030b688dcdcc8290d9a67406491bde9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Mon, 28 Oct 2024 03:24:20 +0300 Subject: [PATCH] feat: fix eslint --- src/hooks/useTraceUpdate/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/useTraceUpdate/index.ts b/src/hooks/useTraceUpdate/index.ts index fe1dd29d4..418db751d 100644 --- a/src/hooks/useTraceUpdate/index.ts +++ b/src/hooks/useTraceUpdate/index.ts @@ -9,6 +9,7 @@ export function useTraceUpdate(props: { [s: string]: unknown } | ArrayLike { const changedProps = Object.entries(props).reduce((ps, [k, v]) => { if (prev.current[k] !== v) { + // eslint-disable-next-line no-param-reassign ps[k] = [prev.current[k], v] }