tbleckert / react-select-search

⚡️ Lightweight select component for React
https://react-select-search.com
MIT License
676 stars 149 forks source link

Warning: React instrumentation encountered an error: RangeError: Maximum call stack size exceeded #156

Closed cymkd closed 3 years ago

cymkd commented 3 years ago

Hi,

Firstly thank you for the amazing package!

I have an array of 6500 (65k) objects. I presume it is an overkill for the rendering. Thus I am getting index.js:2177 Warning: React instrumentation encountered an error: RangeError: Maximum call stack size exceeded.

Is there a way to somehow limit the initial rendering of options in order to avoid this error?

Thanks!

cymkd commented 3 years ago

To partially answer my own question with the idea of a solution. Gotta do the Custom Renderer way and control the amount of options listed. Ill give it a try and post the results here if anyone has a same scenario