#Large data options in Select

12 messages · Page 1 of 1 (latest)

rugged valley
#

Is there any way to properly display 10k+ rows of data in a Select component? When data is too large, the Select component becomes laggy.

pulsar holly
novel spear
#

i made one recently with 223,000 select options

#

it works with react-window to virtualise the options

#

generating a lot of results in js is usually pretty quick, but mounting is not performant

#

so you use a virtualisation library to only mount what you need

#

if react-window isn't too your liking, there are a lot of other libraries you can try, @dull garden sent me a big list

So the ones that I tried were.
https://github.com/TanStack/virtual
https://github.com/bvaughn/react-window
https://github.com/bvaughn/react-virtualized
https://github.com/caseywebdev/react-list
https://github.com/jaredLunde/masonic
https://github.com/jaredLunde/mini-virtual-list
https://github.com/petyosi/react-virtuoso

They all had their own issues. So for me, it's a case of going through each one and finding which satisfies the use case.

GitHub

🤖 Headless UI for Virtualizing Large Element Lists in JS/TS, React, Solid, Vue and Svelte - GitHub - TanStack/virtual: 🤖 Headless UI for Virtualizing Large Element Lists in JS/TS, React, Solid, Vue...

GitHub

React components for efficiently rendering large lists and tabular data - GitHub - bvaughn/react-window: React components for efficiently rendering large lists and tabular data

GitHub

React components for efficiently rendering large lists and tabular data - GitHub - bvaughn/react-virtualized: React components for efficiently rendering large lists and tabular data

GitHub

:scroll: A versatile infinite scroll React component. - GitHub - caseywebdev/react-list: A versatile infinite scroll React component.

GitHub

🧱 High-performance masonry layouts for React. Contribute to jaredLunde/masonic development by creating an account on GitHub.

rugged valley
#

@novel spear woah man, thanks a lot