Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(project): update collections search asynchronously (#6127)
* fix(project): collections search is asynchronous Make the collections search, in the popup collections modal, asynchronous. This fixes a bug where search results were not correctly synchronised to the stored search term (in component state.) * make MIN_SEARCH_LENGTH a configurable parameter * Add some more comments * use a ref instead of state We don't want the component to rerender when the search text changes, only when new search results are received from Panoptes. * revert back to useState
- Loading branch information