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; }, [], );