react-three-fiber icon indicating copy to clipboard operation
react-three-fiber copied to clipboard

Updating from 8.15.19 to 8.16.1 causes 'demand' frameloop issues with @react-spring/three

Open GibsDev opened this issue 1 year ago • 3 comments
trafficstars

This seems to be related to the problem in this react-spring issue, but I've narrowed the conditions down to changing the version of @react-three/fiber.

For some reason when updating to 8.16.1, the react spring animations are stopping short of completion.

I am using a spring with an onUpdate function tha calls invalidate() so the screen will dynamically update when the animation spring changes.

Something about the upgrade from 8.15.19 to 8.16.1 has changed the invalidation behavior, and the animation stops short of completion.

I've outlined some details in the other issue here.

GibsDev avatar Apr 03 '24 19:04 GibsDev

This is probably caused by exactly https://github.com/pmndrs/react-three-fiber/releases/tag/v8.16.1. Maybe try 8.16.0.

CodyJasonBennett avatar Apr 28 '24 01:04 CodyJasonBennett

This does not work with 8.16.0

GibsDev avatar May 12 '24 05:05 GibsDev

Do you still have the project around or a lockfile you can provide? I'm expecting the versions to be misleading if you specified them with ^x.x.x which upgrades to the latest version always. If you remove ^, your package manager will install the exact version you specified.

CodyJasonBennett avatar Aug 14 '24 19:08 CodyJasonBennett