From 030ec1894d6101fe4736f9a6ab014111f8f485a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B7=AF=E6=8C=AF=E5=87=AF?= Date: Thu, 4 Dec 2025 20:56:25 +0800 Subject: [PATCH] Resolve DOM residue issue on activate --- src/hooks/useDomMotionEvents.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/useDomMotionEvents.ts b/src/hooks/useDomMotionEvents.ts index 0ec0517..16abd2c 100644 --- a/src/hooks/useDomMotionEvents.ts +++ b/src/hooks/useDomMotionEvents.ts @@ -36,6 +36,7 @@ export default ( React.useEffect( () => () => { removeMotionEvents(cacheElementRef.current); + cacheElementRef.current = null; }, [], );