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

fix(search): hide "No query, no results" on server #11359

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Jun 24, 2024

Summary

Fixes #4006.

Problem

When opening the full-text search, a "No query, no results" message appears shortly, because the query is empty during server-side rendering.

Solution

Hide the message during server-side rendering.


How did you test this change?

Ran yarn dev and opened http://localhost:3000/en-US/search/?q=html with the internet connection slowed down via DevTools.

@caugner caugner requested a review from a team as a code owner June 24, 2024 21:09
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

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

Got very worried for a moment when ad-hoc SSR wasn't showing the "no query no results" page with JS disabled on stage (but was on test/locally), until I found this PR :)

lgtm!

@LeoMcA LeoMcA merged commit 630fc42 into main Jul 16, 2024
14 checks passed
@LeoMcA LeoMcA deleted the 4006-hide-no-query-no-results-on-server branch July 16, 2024 13:12
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.

"No query, no results" displayed briefly but inappropriately
2 participants