Skip to content

Commit

Permalink
feat: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rassl committed Oct 28, 2024
1 parent 5f1a175 commit 137a621
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useTraceUpdate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function useTraceUpdate(props: { [s: string]: unknown } | ArrayLike<unkno
useEffect(() => {
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]
}

Expand Down

0 comments on commit 137a621

Please sign in to comment.