tajo / react-range

🎚️Range input with a slider. Accessible. Bring your own styles and markup.
https://react-range.pages.dev
MIT License
847 stars 97 forks source link

Crashes when max size is set to over 10million and step size is 1. #170

Closed dilanustek closed 2 years ago

dilanustek commented 2 years ago

In the codesandbox link that is provided, if you change the MAX to a number over 10million (sometimes 100million), the page crashes. It seems like there might be an array generated with this size since the step size is small here. Given that it takes up too much space, we get a crash.

Screen Shot 2022-04-07 at 1 29 46 PM

Is it possible to fix this issue?

tajo commented 2 years ago

What's the point trying to render a slider with 100 million steps?