We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1feb7 commit 8bac0d0Copy full SHA for 8bac0d0
web/src/components/ScrollUpButton.tsx
@@ -5,6 +5,9 @@ export const ScrollUpButton = () => {
5
6
useEffect(() => {
7
window.addEventListener("scroll", toggleVisible);
8
+ return () => {
9
+ window.removeEventListener("scroll", toggleVisible);
10
+ };
11
}, []);
12
13
const toggleVisible = () => {
0 commit comments