Skip to content

Commit 6f16ee7

Browse files
committed
fix: motionDeadline not clean up
1 parent 9c04ef1 commit 6f16ee7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hooks/useStatus.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export default function useStatus(
142142
patchMotionEvents(getDomElement());
143143

144144
if (motionDeadline > 0) {
145+
clearTimeout(deadlineRef.current);
145146
deadlineRef.current = setTimeout(() => {
146147
onInternalMotionEnd({
147148
deadline: true,

0 commit comments

Comments
 (0)