fmoo / react-typeahead

Pure react-based typeahead and typeahead-tokenizer
ISC License
677 stars 231 forks source link

add options instead of replacing all? #120

Open barbalex opened 9 years ago

barbalex commented 9 years ago

Maybe this is already possible but I don't get it:

I populate my component with up to 70'000 options, step by step, depending on what groups of data the user decides to load.

If the user decides to load an extra 10'000 options, it would be nice if my app could just add them to the existing.

As it is now, I replace all options which means my app has to fetch the already included (up to 60'000) options again from the database...

So if the options array were exposed, I could just concat the new options and the existing array. Is that possible?