Skip to content

Commit

Permalink
Merge pull request #59 from kkkkkSE/fix/edit-profile
Browse files Browse the repository at this point in the history
[fix] 프로필 수정 컴포넌트 unmount 시 form reset
  • Loading branch information
kkkkkSE committed Sep 5, 2023
2 parents c008ebf + e62c4f3 commit 1958ffc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/ProfileEditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export default function ProfileEditPage() {

navigate(STATIC_ROUTES.MY_PROFILE);
}

return () => {
store.reset();
};
}, [done]);

return (
Expand Down

0 comments on commit 1958ffc

Please sign in to comment.