Skip to content

Commit 2f61621

Browse files
authored
update readme, document swipe listeners
1 parent 11d1b7e commit 2f61621

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ const { ref } = useSwipeable({
170170

171171
useEffect(() => {
172172
ref(document);
173+
// Clean up swipeable event listeners
174+
return () => ref({});
173175
});
174176
```
175177

0 commit comments

Comments
 (0)