mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 01:25:16 +00:00
testing removing trackEven from dep list
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user