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:
parent
a26bbf1a7e
commit
3961c1abf0
@ -115,10 +115,15 @@ export const CommandBar = () => {
|
|||||||
|
|
||||||
const [value, setValue] = useState<string>('');
|
const [value, setValue] = useState<string>('');
|
||||||
|
|
||||||
const { features = [] } = useFeatureSearch({
|
const { features = [] } = useFeatureSearch(
|
||||||
query: searchString,
|
{
|
||||||
limit: '3',
|
query: searchString,
|
||||||
});
|
limit: '3',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
revalidateOnFocus: false,
|
||||||
|
},
|
||||||
|
);
|
||||||
const { projects } = useProjects();
|
const { projects } = useProjects();
|
||||||
|
|
||||||
const debouncedSetSearchState = useAsyncDebounce((query) => {
|
const debouncedSetSearchState = useAsyncDebounce((query) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user