260508_14_ENH: 새로고침 시 로그인 풀리는 문제 수정 중

This commit is contained in:
2026-05-08 11:34:10 +09:00
parent b73d5d55fb
commit e93f6c8f41
4 changed files with 26 additions and 112 deletions

View File

@@ -65,15 +65,6 @@ export const createLocalStorageAtom = <T>(
},
);
persistentAtom.onMount = (setAtom) => {
if (typeof window === "undefined" || wasOverridden) return;
const stored = getLocalStorage(key);
if (stored && typeof stored === "object") {
setAtom(stored as T);
}
};
return persistentAtom;
}
@@ -113,14 +104,5 @@ export const createSessionStorageAtom = <T>(
},
);
persistentAtom.onMount = (setAtom) => {
if (typeof window === "undefined") return;
const stored = getSessionStorage(key);
if (stored && typeof stored === "object") {
setAtom(stored as T);
}
};
return persistentAtom;
}