diff --git a/packages/gitbook/src/components/Search/SearchResults.tsx b/packages/gitbook/src/components/Search/SearchResults.tsx index 61f4b6a18..74341c0da 100644 --- a/packages/gitbook/src/components/Search/SearchResults.tsx +++ b/packages/gitbook/src/components/Search/SearchResults.tsx @@ -111,7 +111,7 @@ export const SearchResults = React.forwardRef(function SearchResults( cancelled = true; }; } else { - // setResultsState((prev) => ({ results: prev.results, fetching: true })); + setResultsState((prev) => ({ results: prev.results, fetching: true })); let cancelled = false; const timeout = setTimeout(async () => { @@ -147,7 +147,8 @@ export const SearchResults = React.forwardRef(function SearchResults( clearTimeout(timeout); }; } - }, [query, global, pointer, spaceId, revisionId, withAsk, trackEvent, getCtx]); + // }, [query, global, pointer, spaceId, revisionId, withAsk, trackEvent, getCtx]); + }, [query, global, pointer, spaceId, revisionId, withAsk, getCtx]); const results: ResultType[] = React.useMemo(() => { if (!withAsk) {