search function gets executed twice when loading ?search=foo page #90454
Labels
A-rustdoc-ui
Area: Rustdoc UI (generated HTML)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Steps to reproduce:
{ }
in the lower right of that panel to pretty-printfunction search()
.Expected result: Hit F8 only once.
Actual result: Hit F8 twice.
This is relevant because search is a CPU-intensive operation and blocks the UI thread. Doing it twice is a bad user experience.
This is a category of bug we've had at least once before. Rather the fix it by repairing the specific sequence of events that causes it, perhaps we should do some sort of memoization so that if
search()
is called for an input that is already displayed on the page, we don't actually execute the search again./cc @GuillaumeGomez
The text was updated successfully, but these errors were encountered: