Skip to content

Commit

Permalink
[hotfix, 시간표] 시간표 페이지 뒤로가기 문제 (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gwak-Seungju authored Feb 3, 2025
1 parent 2c3939f commit 18602c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export default function DefaultPage({ frameId, setCurrentFrameId }: DefaultPageP
return (() => {
window.removeEventListener('popstate', handlePopState);
});
}, [handlePopState]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

React.useEffect(() => {
sessionStorage.setItem('swipeToBack', 'false');
Expand Down
3 changes: 1 addition & 2 deletions src/pages/TimetablePage/MainTimetablePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ function TimetablePage() {
} else {
setCurrentFrameIndex(mainFrame?.id ? mainFrame.id : 0);
}
sessionStorage.setItem('enterTimetablePage', new Date().getTime().toString());
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

sessionStorage.setItem('enterTimetablePage', new Date().getTime().toString());

return (
<div className={styles.page}>
{!isMobile ? (
Expand Down

0 comments on commit 18602c7

Please sign in to comment.