Replies: 1 comment 3 replies
-
Overall, the goal of this library is not to modify the base behavior of react-select in any way that doesn't have to do specifically with Chakra. The idea was that I'd style it to match the rest of the styles of the Chakra UI lib, including sizes and variants, and make it behave more like a chakra input by integrating with the form control. Past that, I left it open to be customized (almost) as much as the original react-select is, giving people the ability to make these choices on their own. I also try and give examples of how people can make those customizations on their own (such as integrating with form libraries) as often as I can. In most cases, I don't use this package with more than 30-50 options, so I completely avoid the performance bottleneck. Removing some of the features react-select offers by default for the case of performance that only helps some doesn't really make sense IMO, as people can implement those customizations on their own. Especially when, like in your example above, the customization breaks the built in behavior of arrow navigation vs hovering. You can see what I mean in this example, if you hover over an item, it's supposed to reset the current focus index for using the up and down arrows to navigate, but in the case of you custom version, that behavior breaks. So I'm happy for people to share their customizations that might help others, but I don't plan to implement those in the package itself. My main goal is to make an example for people using |
Beta Was this translation helpful? Give feedback.
-
This library suffers from the same issues as react-select in terms of performance. It turned out to be deal-breakingly slow for little over 400 options. However, the following fixes/hacks helped me improve its performance significantly.
As a middle ground between being compliant with
react-select
and being performant, it might make sense to introduce a new component with these hacks and maybe more.Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions