Skip to content

Commit

Permalink
Merge pull request justin-chu#28 from chriswinch/fix/useeffect-deps
Browse files Browse the repository at this point in the history
fix: add depedency array for useeffect
  • Loading branch information
justin-chu authored Dec 31, 2021
2 parents e10c58a + d87b959 commit 0b0774a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Marquee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Marquee: React.FC<MarqueeProps> = ({
return () => {
window.removeEventListener("resize", calculateWidth);
};
});
}, []);

useEffect(() => {
setIsMounted(true);
Expand Down

0 comments on commit 0b0774a

Please sign in to comment.