Skip to content

Commit

Permalink
Add missing useeffect dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
melvin-chen committed Feb 29, 2024
1 parent 2ab32e1 commit 9bd5d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuka/src/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const Carousel = forwardRef<SlideHandle, CarouselProps>(
containerRef.current.scroll(currentScrollIndex, 0);
afterSlide && setTimeout(() => afterSlide(), 0);
}
}, [currentScrollIndex]);
}, [currentScrollIndex, beforeSlide, afterSlide]);

useEffect(() => {
const handleDebounce = setTimeout(() => {
Expand Down

0 comments on commit 9bd5d8e

Please sign in to comment.