@@ -29,12 +29,14 @@ const ShotClock = () => {
2929 if ( currentSeconds < ShotClockReset . BackCountPosition && ! isTickingRef . current ) {
3030 setCurrentSeconds ( currentSeconds + 1 ) ;
3131 }
32+ // eslint-disable-next-line react-hooks/exhaustive-deps
3233 } , [ isTickingRef . current , currentSeconds ] ) ;
3334
3435 const decrementSecond = useCallback ( ( ) => {
3536 if ( currentSeconds > 0 && ! isTickingRef . current ) {
3637 setCurrentSeconds ( currentSeconds - 1 ) ;
3738 }
39+ // eslint-disable-next-line react-hooks/exhaustive-deps
3840 } , [ isTickingRef . current , currentSeconds ] ) ;
3941
4042 const on14SecondsClick = useCallback ( ( ) => {
@@ -46,6 +48,7 @@ const ShotClock = () => {
4648
4749 setIsTimeDisplay ( true ) ;
4850 setCurrentSeconds ( ShotClockReset . FrontCountPosition ) ;
51+ // eslint-disable-next-line react-hooks/exhaustive-deps
4952 } , [ isTickingRef . current , intervalRef . current ] ) ;
5053
5154 const on24SecondsClick = useCallback ( ( ) => {
@@ -57,6 +60,7 @@ const ShotClock = () => {
5760
5861 setIsTimeDisplay ( true ) ;
5962 setCurrentSeconds ( ShotClockReset . BackCountPosition ) ;
63+ // eslint-disable-next-line react-hooks/exhaustive-deps
6064 } , [ isTickingRef . current , intervalRef . current ] ) ;
6165
6266 const onTickToggle = ( ) => {
0 commit comments