1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

feat: now command bar will not search behind the scene (#7443)

Previously it was doing request to search behind to scenes, when noone
was using the nav bar. This fixes it.
This commit is contained in:
Jaanus Sellin 2024-06-25 11:53:23 +02:00 committed by GitHub
parent a26bbf1a7e
commit 3961c1abf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,10 +115,15 @@ export const CommandBar = () => {
const [value, setValue] = useState<string>('');
const { features = [] } = useFeatureSearch({
query: searchString,
limit: '3',
});
const { features = [] } = useFeatureSearch(
{
query: searchString,
limit: '3',
},
{
revalidateOnFocus: false,
},
);
const { projects } = useProjects();
const debouncedSetSearchState = useAsyncDebounce((query) => {