Describe the bug#
In react with the compiler enabled, rangerInstance.handles() is a side-effectful call that is optimized away and so the handles don't actually move.
Your Example Website or App#
https://example.com
Steps to Reproduce the Bug or Issue#
- Enable react compiler
- Render a range slider
- Grab a handle and drag
Expected behavior#
I expected it to move, it did not.
Screenshots or Videos#
No response
Platform#
- OS: macOS
- Browser: Firefox
- Version: @tanstack/react-ranger@npm:0.0.5
Additional context#
https://github.com/user-attachments/assets/d64feb7e-9640-49e5-8f98-50f64882d527
Adding
'use no memo'directive does correctly restore behavior.