Open sorin-sabo opened 1 year ago
Something like https://github.com/TanStack/virtual or https://github.com/bvaughn/react-virtualized could solve this problem.
The problem with virtualized lists right now with React-Select is that looses keyboard navigation. I didn't find a workaround for it. https://stackblitz.com/edit/react-ts-sxucwt?file=App.tsx
@JanderSilv Have you tried the libraries I provided? Maybe it's a react-virtuoso thing.
I'll give a look, thanks. I've tried with react-window as well, and the same behavior happened.
When react select has more than 20.000 options it is no longer usable. Render and search takes a lot of time, so users simply close the app because of this component. Please note, that there is a potential fix for this in PR #4515 but that was not merged. Currently developers have to integrate other components and packages just to fix this simple issue that already has a fix. In case possible, please have a look and merge that PR.