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

Add isFirstSearch prop to Instant Results #3568

Merged
merged 11 commits into from
Aug 4, 2023
Merged

Conversation

oscarssanchez
Copy link
Contributor

@oscarssanchez oscarssanchez commented Jul 29, 2023

Description of the Change

This PR adds a new isFirstSearch to keep track of whether we are on the first time searching in instant results. If it is set to true instant results will show a "Loading results" text until we have set the results from Elastic.

Closes #3508

How to test the Change

1.- With instant results activated, search for a term
2.- You should see the text "Loading results" instead of "0 results" for a brief moment

Changelog Entry

Fixed - Display "Loading results" instead of "0 results" on first search.

Credits

Props @oscarssanchez, @JakePT, @felipeelia

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@oscarssanchez oscarssanchez changed the title Fix/ir 0 results Add isFirstSearch prop to Instant Results Aug 1, 2023
@oscarssanchez oscarssanchez added this to the 4.7.0 milestone Aug 1, 2023
@JakePT JakePT requested review from JakePT and removed request for felipeelia August 1, 2023 13:55
@JakePT JakePT removed their assignment Aug 3, 2023
@felipeelia felipeelia merged commit aa53756 into develop Aug 4, 2023
@felipeelia felipeelia deleted the fix/ir-0-results branch August 4, 2023 14:15
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.

BUG: Instant Results shows 0 results or previous results while loading
3 participants