themoment-team / HiRecruit-front

[HR | 프론트엔드] IT 직군들을 위한 취업 커뮤니티
https://hirecruit.site
MIT License
25 stars 0 forks source link

Feature/residualar marker #34

Closed sunwoo0706 closed 2 years ago

sunwoo0706 commented 2 years ago

개요

기존 useMarker hook 내부의 로직은 data (companyListData) 가 바뀔때마다 setState의 prevState 를 이용하여 marker를 생성하기 때문에 데이터 중복 문제가 있었다. 그 때문에 swr의 자동 갱신 기능과 더불어 웹페이지에 포커스 될 때마다 필요없는 마커들이 렌더링되었다.

작업 내용

vercel[bot] commented 2 years ago

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

Name Status Preview Updated
hi-recruit-front ✅ Ready (Inspect) Visit Preview Jun 12, 2022 at 1:55AM (UTC)