Skip to content

Commit

Permalink
reduce debounce timeout and show status message
Browse files Browse the repository at this point in the history
  • Loading branch information
SKarolFolio committed Dec 16, 2024
1 parent 0911aaf commit 0326654
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/common/hooks/useFetchSearchData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const useFetchSearchData = () => {
} = useSearchContext();
const { setIsLoading } = useLoadingState();
const { setMessage, data, setData, resetData, setPageMetadata } = useSearchState();
const { addStatusMessagesItem, resetStatusMessages } = useStatusState();
const { addStatusMessagesItem } = useStatusState();

const validateAndNormalizeQuery = useCallback(
(type: SearchIdentifiers, query: string) => {
Expand Down Expand Up @@ -133,7 +133,6 @@ export const useFetchSearchData = () => {
selectedSegment,
baseQuerySelector = SearchableIndexQuerySelector.Query,
}: FetchDataParams) => {
resetStatusMessages();
const selectedNavigationSegment = selectedSegment ?? navigationSegment?.value;

data && resetData();
Expand Down
2 changes: 1 addition & 1 deletion src/components/EditSection/EditSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useInputsState, useProfileState, useStatusState, useUIState } from '@sr
import { renderDrawComponent } from './renderDrawComponent';
import './EditSection.scss';

const USER_INPUT_DELAY = 750;
const USER_INPUT_DELAY = 100;

export const EditSection = memo(() => {
const { selectedEntriesService } = useServicesContext() as Required<ServicesParams>;
Expand Down

0 comments on commit 0326654

Please sign in to comment.