Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear stale search results when version is changed #873

Merged
merged 5 commits into from
Jul 27, 2023

Conversation

a13o
Copy link
Contributor

@a13o a13o commented Jul 24, 2023

Closes #872.

This approach replaces the stale search results just in time whenever the search results dropdown is about to display.

By doing it this way we don't have to clear the user's search term whenever they change versions. They can pick up right where they left off, but with fresh search results.

ember-api-docs.mp4

@a13o a13o marked this pull request as draft July 24, 2023 03:46
@a13o a13o marked this pull request as ready for review July 25, 2023 02:59
@jenweber
Copy link
Contributor

Thanks for the fix! Is this ready for review?

I suspect that maybe this feature got a bug when we converted some components to use tracked instead of observers and computed properties. It will be great to have it working!

@a13o
Copy link
Contributor Author

a13o commented Jul 25, 2023

Oops, I have some lint issues to fix, but the general approach is ready for feedback

Copy link
Contributor

@MinThaMie MinThaMie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great :) Thanks for fixing this and for the elaborate demo video!

@MinThaMie MinThaMie merged commit 65735b1 into ember-learn:master Jul 27, 2023
2 checks passed
@a13o a13o deleted the clear-stale-search-results branch July 28, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stale search results when switching versions
4 participants