Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@react-spring/three useSpring stops updating in XR session #1367

Closed
ffdead opened this issue May 20, 2021 · 0 comments
Closed

@react-spring/three useSpring stops updating in XR session #1367

ffdead opened this issue May 20, 2021 · 0 comments

Comments

@ffdead
Copy link
Contributor

ffdead commented May 20, 2021

This is a duplicated bug report from pmndrs/react-spring#1518

I'm not sure if this a bug related to @react-spring/three, @react-three/fiber, @react-three/xr or a combination of all three.

Feel free to close if you think this bug relates to react-spring only and not this library.

To Reproduce

  1. Load repro link below
  2. The mesh changes scale on a timer ever 1s - this is animated with a spring
  3. Start a VR session
  4. The mesh stops animating scale and stays at the scale it was when the xr session was started

Expected behavior

The mesh should continue to animate scale inside the XR session.

Link to repro

https://codesandbox.io/s/react-xr-react-spring-bug-fkzt3?file=/src/index.tsx

Environment

  • @react-spring/three >= v9.0.0
  • @react-three/fiber >= v6.0.3
  • @react-three/xr >= v2.1.0
  • react v17.x

Works as expected with the following old versions:

  • @react-spring/three v9.0.0-rc.3
  • react-three-fiber v5.x.x
  • @react-three/xr v2.0.1
@ffdead ffdead closed this as completed Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant