Skip to content

Commit e30bafa

Browse files
committed
feat(auth) : 로그인 성공 시 router.refresh() 추가
1 parent 46ac3f3 commit e30bafa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/auth/sign-in/SignInForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default function SignInForm() {
3333
await login(data.email, data.password);
3434
toast.success("로그인이 완료됐습니다.");
3535
router.push("/home");
36+
router.refresh();
3637
} catch (error) {
3738
if (error instanceof Error) {
3839
toast.error(error.message);

0 commit comments

Comments
 (0)