diff --git a/packages/r3f/src/extension/components/TransformControls.tsx b/packages/r3f/src/extension/components/TransformControls.tsx index 6145401..578d5c1 100644 --- a/packages/r3f/src/extension/components/TransformControls.tsx +++ b/packages/r3f/src/extension/components/TransformControls.tsx @@ -49,8 +49,8 @@ const TransformControls = forwardRef( }, [object, controls]) useEffect(() => { - controls?.addEventListener?.('change', invalidate) - return () => controls?.removeEventListener?.('change', invalidate) + controls?.addEventListener?.('change', () => invalidate()) + return () => controls?.removeEventListener?.('change', () => invalidate()) }, [controls, invalidate]) useEffect(() => {