Skip to content

Commit

Permalink
Feat: 페이지 접근 시 최신 데이터를 로드하다
Browse files Browse the repository at this point in the history
  • Loading branch information
kikiyeom committed Feb 15, 2024
1 parent 81756ca commit 5c71689
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/ApplicationList/ApplicationList.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
$profile,
$generationNumber,
} from '@/store';
import { useConvertToXlsx, useDirty, usePagination } from '@/hooks';
import { useConvertToXlsx, useDirty, usePagination, useUnmount } from '@/hooks';
import { ApplicationRequest, ApplicationResponse } from '@/types';
import { SortType, TableColumn } from '@/components/common/Table/Table.component';
import { ButtonShape, ButtonSize } from '@/components/common/Button/Button.component';
Expand Down Expand Up @@ -311,6 +311,10 @@ const ApplicationList = () => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [loadedTableRows]);

useUnmount(() => {
refreshApplications();
});

return (
<Styled.PageWrapper>
<Styled.Heading>지원서 내역</Styled.Heading>
Expand Down

0 comments on commit 5c71689

Please sign in to comment.