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 related issue workaround? #38

Open
fnick851 opened this issue Feb 20, 2021 · 2 comments
Open

react-spring related issue workaround? #38

fnick851 opened this issue Feb 20, 2021 · 2 comments

Comments

@fnick851
Copy link

It seems like react-spring has an issue in production that affects the dragging capability of this library: pmndrs/react-spring#1078

I wonder we should wait for react-spring to fix this, or if there is a workaround? Thanks.

@danvk
Copy link

danvk commented Mar 31, 2021

I was able to work around this by pinning to some old versions of react-spring using Yarn's resolutions in my package.json:

  "resolutions": {
    "@react-spring/three": "9.0.0-rc.3",
    "@react-spring/web": "9.0.0-rc.3",
    "@react-spring/core": "9.0.0-rc.3",
    "@react-spring/shared": "9.0.0-rc.3",
    "@react-spring/animated": "9.0.0-rc.3"
  }

Then

yarn add react-three-fiber@5 @react-three/drei@3 react-three-gui

But probably just switch to https://github.com/pmndrs/use-tweaks https://github.com/pmndrs/leva instead

@fnick851
Copy link
Author

fnick851 commented Apr 1, 2021

@danvk Yes, I switched to leva. Thanks.

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

2 participants