Skip to content

Not compatible with react compiler #106

@mn-prp

Description

@mn-prp

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

Screen.Recording.2026-05-13.at.11.03.22.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions