Skip to content

Commit 1e83f4b

Browse files
authored
Resolve DOM residue issue on activate (#70)
Co-authored-by: 路振凯 <l>
1 parent 8fc6ca2 commit 1e83f4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/useDomMotionEvents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default (
3636
React.useEffect(
3737
() => () => {
3838
removeMotionEvents(cacheElementRef.current);
39+
cacheElementRef.current = null;
3940
},
4041
[],
4142
);

0 commit comments

Comments
 (0)