Skip to content

Commit 7ab54a8

Browse files
committed
fix: router.replace 전에 router.refresh 추가
1 parent e2cfc1c commit 7ab54a8

File tree

1 file changed

+1
-0
lines changed
  • src/hooks/use-auth/use-auth-login

1 file changed

+1
-0
lines changed

src/hooks/use-auth/use-auth-login/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export const useLogin = () => {
7575
setIsAuthenticated(true);
7676

7777
const nextPath = normalizePath(searchParams.get('path'));
78+
router.refresh();
7879
router.replace(nextPath);
7980
} catch (error) {
8081
if (isCommonErrorResponse(error)) {

0 commit comments

Comments
 (0)