Skip to content

Commit 8979b89

Browse files
gamweenclaude
andcommitted
fix: capture ref value in local variable to fix exhaustive-deps lint warning
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 977cda2 commit 8979b89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nextjs/components/TargetCursor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const TargetCursor = ({
6262
}
6363

6464
const cursor = cursorRef.current;
65+
const activeStrength = activeStrengthRef.current;
6566
cornersRef.current = cursor.querySelectorAll(".target-cursor-corner");
6667

6768
let activeTarget: Element | null = null;
@@ -273,7 +274,7 @@ const TargetCursor = ({
273274
document.body.style.cursor = originalCursor;
274275
isActiveRef.current = false;
275276
targetCornerPositionsRef.current = null;
276-
activeStrengthRef.current.current = 0;
277+
activeStrength.current = 0;
277278
};
278279
}, [targetSelector, spinDuration, moveCursor, constants, hideDefaultCursor, isMobile, hoverDuration, parallaxOn]);
279280

0 commit comments

Comments
 (0)