-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[D-TP] 공지사항 위젯 #547
[D-TP] 공지사항 위젯 #547
Conversation
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key={crypto.randomUUID()} key값에 인자는 왜 이렇게 넣어주시는 걸까요 ? 처음 보는 형태라 궁금해서 질문드립니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
소나클라우드에서 index를 map의 key 값으로 넣어주면 warning을 띄우더라구요. index 말고는 마땅히 key로 써줄 값이 없어서 내장객체 crypto의 randomUUID 메소드를 이용해서 랜덤한 key를 넣어준거예요! https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID
근데 리뷰 남겨주신 것 보고 다시 보니까 여기는 randomUUID를 쓰지 않고도 postId를 가지고 key를 부여할 수 있었네요.... 이거는 다음 PR에 수정해두겠습니다 🥲
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
덕분에 이런 방식도 사용할 수 있는지 배웠네요! 감사합니다 ㅎㅎ
작업 내용
공지사항 위젯을 추가했습니다.
공지사항 위젯 L / M
공지사항 미리보기
추가 작업 예정인 것들
관련 이슈