-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[✅ test] getServerSideProps 내에서 new Date() 사용 테스트
- 서버에서의 new Date() 값과 Hydration 도중 클라이언트의 new Date() 값이 변화하는 것을 에러의 주 요인으로 추측 - 데이터가 변화하는 것을 막기 위해 getServerSideProps 내에서 날짜 데이터를 생성하고 이를 props로 내려주는 방식으로 테스트. 어차피 SSR 페이지이기 때문에 client에서 실시간으로 값을 바꿔줄 필요성은 없다고 판단
- Loading branch information
1 parent
fbb6e32
commit 23763a5
Showing
3 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters