ValentinH / react-easy-sort

A React component to sort items in lists or grids
https://ValentinH.github.io/react-easy-sort
MIT License
160 stars 25 forks source link

Stop Rerendering until mouse hover #35

Closed CaiIsProgrammer closed 11 months ago

CaiIsProgrammer commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Stop Rerendering until mouse hover. im trying to render three.js components but it keeps rerendering them and creating new ones and causing a memory leak as well as not letting the threejs component actually animate for more than a second.

Describe the solution you'd like A clear and concise description of what you want to happen.

i would like a variable to stop the rerender until the components are hovered

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

https://gyazo.com/f0fe69eaf9791bb71b83f6563cccc8d1

ValentinH commented 1 year ago

Please provide a codesandbox showing the issue or I'll be not be able to diagnose the root cause. Having so many rendering doesn't feel right indeed.

ValentinH commented 11 months ago

Closing as there was no answer for a while. Comment to re-open 😉