How to optimize performance of chakra-react-select. #156
Replies: 1 comment 1 reply
-
Sorry for not responding to this sooner, I was messing around with a couple potential options but never found a perfect solution. At the end of the day you're going to be limited by the fact that rendering that many DOM nodes is not great for performance. The ideal solution would be to implement some kind of virtualization around the options so that they are only rendered on the page when they're actually in view but i wasn't able to get a minimal working example using
If you have the time or know how to figure out how to replace some of the components in Here's another list of tips for improving the performance of the base One other prop you could consider using is the
If you decided to write a custom function for this you could prevent any items from being returned if the length of the search string is less than 3 for example, but you'd have to implement your own function for matching after that point. If I have some time in the future, I'll look into making a virtualized example for |
Beta Was this translation helpful? Give feedback.
-
I create HTML select box using chakra-react-select.
Currently, I put over 2000 data arrays to chakra-react-select.
Then the chakra-react-select behavior is so heavy.
I am trying to optimize its performance, but I can't.
Please help me about that how to optimize the case using massive data(ex) over 2000 data arrays).
Thank you.
My environmemt:
Beta Was this translation helpful? Give feedback.
All reactions