yari icon indicating copy to clipboard operation
yari copied to clipboard

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

Open caugner opened this issue 1 year ago • 0 comments

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 avatar Jun 24 '24 21:06 caugner