React-autosuggest: Poor render performance on large list

Created on 15 Nov 2016  路  1Comment  路  Source: moroshko/react-autosuggest

Hi,
I have a large list of suggestions. I was wondering if there is a way to show a maximum number of suggestions at any time to reduce the performance issue or any other performance trick.
Thanks for the help,
Marc

Most helpful comment

To limit the amount of displayed suggestions, just limit whatever you pass to suggestions={...}.
For example, to display the first 5 suggestions, do:

<Autosuggest suggestions={mySuggestions.slice(0, 5)} ... />

>All comments

To limit the amount of displayed suggestions, just limit whatever you pass to suggestions={...}.
For example, to display the first 5 suggestions, do:

<Autosuggest suggestions={mySuggestions.slice(0, 5)} ... />
Was this page helpful?
0 / 5 - 0 ratings