Skip to content

Commit 8480764

Browse files
add: dependency hook added v3
1 parent ccf6217 commit 8480764

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

custom-implementation/src/components/theme-switch.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ export const ThemeSwitch = () => {
1515

1616
console.log('listenToPopstate added')
1717
window.addEventListener('popstate', listenToPopstate)
18-
return () => {
19-
window.removeEventListener('popstate', listenToPopstate)
20-
}
2118
}, [])
2219

2320
useEffect(() => {

0 commit comments

Comments
 (0)