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

useSimpleDrag causing Hangar Container to constantly re-render #12

Open
johnrees opened this issue May 14, 2020 · 2 comments
Open

useSimpleDrag causing Hangar Container to constantly re-render #12

johnrees opened this issue May 14, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@johnrees
Copy link
Contributor

details to be added...

@johnrees
Copy link
Contributor Author

basically removing {...dragContainerAttrs} from <Canvas> stops rendering from happening whenever the mouse moves or controls are orbited etc

@johnrees johnrees added the bug Something isn't working label May 14, 2020
@peterszerzo
Copy link
Contributor

It definitely looks like I'm completely foregoing the the performance benefits of react-use-gesture by setting state every time: https://use-gesture.netlify.app/docs/faq/#why-use-react-spring-instead-of-reactusestate. Not sure that's related though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants