From d7aa5fa0037ba148b4d777480eeea7c9ddcc0880 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Mon, 24 Mar 2025 19:19:12 +0100 Subject: [PATCH] Remove loading state for recommended questions (#3029) --- packages/gitbook/src/components/Search/SearchResults.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gitbook/src/components/Search/SearchResults.tsx b/packages/gitbook/src/components/Search/SearchResults.tsx index 4bf253eaf..1eca294d4 100644 --- a/packages/gitbook/src/components/Search/SearchResults.tsx +++ b/packages/gitbook/src/components/Search/SearchResults.tsx @@ -77,7 +77,8 @@ export const SearchResults = React.forwardRef(function SearchResults( let cancelled = false; - setResultsState({ results: [], fetching: true }); + // Silently fetch the recommended questions, instead of showing a spinner + setResultsState({ results: [], fetching: false }); // We currently have a bug where the same question can be returned multiple times. // This is a workaround to avoid that.