Skip to content

Conversation

Seoin02
Copy link
Owner

@Seoin02 Seoin02 commented Aug 5, 2024

🔥관련 이슈

😁주요 변경 사항

  • Redux 세팅
  • Recoil 제거
  • localStorage에 상태 저장
  • 장바구니 기능 구현

📝배운 점

  • 상태 관리 라이브러리는 개발 환경을 편하게 만든다.
  • 그러나 쓰는 이유가 분명해야 한다. 나는 장바구니를 구현해야 했고, 장바구니에 넣은 데이터 상태를 많은 컴포넌트에서 사용해야 했기 때문에 Redux를 사용했다.
  • Redux는 장바구니 UI 업데이트(장바구니 상품 수량, 가격)와 클라이언트 상태 관리에만 사용했고, 상품 목록을 불러오는 데이터 통신은 Tanstack Query로만 진행했다.

📄스크린샷

장바구니 구현
당신에게 Redux는 필요 없을지도 모릅니다.

@Seoin02 Seoin02 self-assigned this Aug 5, 2024
@Seoin02 Seoin02 linked an issue Aug 5, 2024 that may be closed by this pull request
3 tasks
Copy link

vercel bot commented Aug 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-shop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 5, 2024 8:43am

@Seoin02 Seoin02 merged commit 2e3ff85 into main Aug 5, 2024
@Seoin02 Seoin02 added the feat label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CHORE] Redux 세팅&장바구니 기능 구현
1 participant