Reviewer widget with a search term makes double renders after a search
I could reproduce it the following way:
- Edit the reviewers and enter a search term
- Click somewhere outside and close the reviewers selection
- Edit again, and now the search term is remembered.
- Initially, the widget shows the non-search result list
- Then, The widget makes an API cal to search and renders the list again
- We hide the suggestions from the "Suggested reviewers" whenever there's a search term. This creates a feeling as if the suggested reviewers is splashing.
Solution Approach
- We should either not remember a previous search term
- Or make a search and render, avoding a re-render
Edited by Alper Akgun