r3f-motion 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -458,7 +458,7 @@ function custom(Component) {
458
458
  animationRef.current = {
459
459
  stop: () => animations.forEach((anim) => { var _a; return (_a = anim.stop) === null || _a === void 0 ? void 0 : _a.call(anim); }),
460
460
  };
461
- }, []);
461
+ }, [animate]);
462
462
  react.useEffect(() => {
463
463
  if (!instanceRef.current || !animate)
464
464
  return;
@@ -191,7 +191,7 @@ function custom(Component) {
191
191
  animationRef.current = {
192
192
  stop: () => animations.forEach((anim) => { var _a; return (_a = anim.stop) === null || _a === void 0 ? void 0 : _a.call(anim); }),
193
193
  };
194
- }, []);
194
+ }, [animate$1]);
195
195
  useEffect(() => {
196
196
  if (!instanceRef.current || !animate$1)
197
197
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "r3f-motion",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A simple and powerful React animation library for @react-three/fiber leveraging motion.dev",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.mjs",