[SearchPanel] TVirtualGridList 사용 시 UI 깨던 현상 수정,

[SearchReducer]
actionTypes, searchActions 에 initPerformed 추가
This commit is contained in:
hyunwoo93.cha
2024-02-22 22:03:21 +09:00
parent 96d708cb1a
commit aa19cbf7c3
4 changed files with 29 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ const initialState = {
searchDatas: {},
totalCount: {},
searchPerformed: false,
initPerformed: false,
};
export const searchReducer = (state = initialState, action) => {
@@ -29,6 +30,7 @@ export const searchReducer = (state = initialState, action) => {
searchDatas: updatedSearchDatas,
totalCount: updatedTotalCount,
searchPerformed: true,
initPerformed: !action.append,
};
}
@@ -37,6 +39,12 @@ export const searchReducer = (state = initialState, action) => {
...initialState,
};
case types.SET_SEARCH_INIT_PERFORMED:
return {
...state,
initPerformed: action.payload,
};
default:
return state;
}