Conversation
duwlsssss
approved these changes
May 30, 2025
| export const useCartInfo = () => | ||
| useCartStore( | ||
| useShallow((state) => ({ | ||
| cartItems: state.cartItems, |
Contributor
There was a problem hiding this comment.
상태를 객체 형태로 사용할 생각은 못해봤네요
정확한 비교를 위해 useShallow를 써야 하는 것도 배워갑니다!
JeonSuna
approved these changes
May 30, 2025
JeonSuna
approved these changes
May 30, 2025
starvingorange
approved these changes
Jun 18, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✏️ 작업 내용
#️⃣ 연관된 이슈
#50
📷 작업 결과
2025-05-29.8.20.05.mov
💡 함께 공유하고 싶은 부분
상태관리에 관한 공부를 깊게 하진 않고, 항상 그냥 전역상태로 관리할 수 있게 해주는거다 ~ 라고만 이해하고 있었는데, 이번 기회에 공부할 수 있게 되어 좋았습니다.
노션에 어느정도 자세히 정리해두었으니 한 번 보시면 좋겠습니다.
🤔 질문
✅ 워크북 체크리스트
✅ 컨벤션 체크리스트