Skip to content
Source
Sign inSign up
TanStack/ranger

Not compatible with react compiler #106

Openmn-prp(GitHub profile, opens in a new tab) opened this issue 1 comment

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

  1. Enable react compiler
  2. Render a range slider
  3. 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

  1. Adding 'use no memo' directive does correctly restore behavior.

Sign in to join this conversation.