Skip to content

Commit

Permalink
fix(cmpts): add missing dependency to effect
Browse files Browse the repository at this point in the history
This commit refactors the DotRing component in the Mouse directory. It adjusts the useEffect dependencies by adding the 'controls' variable to ensure proper handling of the animation. The update aims to enhance the component's functionality and maintain consistency in the codebase.

Details:
- Updated the DotRing component in the Mouse directory.
- Adjusted the dependencies in the useEffect hook by adding 'controls.'
- Ensured proper handling of the animation.
- Improved component functionality and maintained codebase consistency.
  • Loading branch information
FradSer committed Dec 28, 2023
1 parent 5e56ee5 commit 9176e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Mouse/DotRing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default function DotRing() {
controls.start('initial')
setDotRingTitle('')
}
}, [mouseContext.cursorType])
}, [mouseContext.cursorType, controls])

// * Render
return (
Expand Down

0 comments on commit 9176e9c

Please sign in to comment.