codestates / codestates/aneun-dongne
[ Dev-log ]. 1/8 류준열
- Dominant language
- JavaScript
- Stars
- 6
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
> ### 오늘은 어떻게 프로젝트에 기여했나요?
> 오늘 홈화면 UI,기능구현을 완료했다. 더이상 고칠것 보완할것이 나오지 않았으면 한다.
> ### 오늘의 프로젝트에서 힘든 점은 무엇인가요?
> 매 요청마다 마커를 지웠다가 다시 그려야하는 기능을 구현하는게 어려웠다.
> 첨엔 마커를 그냥 let 변수에 할당했는데, 그러면 지역검색으로 placeList를 갱신했을때, 마커를 지우는 코드가 실행이 되지 않았다.
> 때문에 다 지우고 useState를 활용해서 구현하였는데, useState에 화살표 함수를 할당하는, 즉 정적인 상태가 아니라 '동적인 기능'을 할당하는 것을
> 생각하지 못하고 있다가 구글링을 통해 알게되었고, 이를 내가 사용할 기능에 맞춰서 변경하는것이 어려웠다.
>
```js
// 코드를 첨부해도 좋습니다.
setMarkerList(() => {
markerList.forEach((marker) => marker.setMap(null));
});
```
근데 지금 이 글 작성하면서 보니까
```
markerList.forEach((marker) => marker.setMap(null));
```
이렇게 작성해도 될 것같아 해보니까 된다.
괜히 삽질했다.
>
> ### 내일은 프로젝트에 기여하기 위해 무엇을 해야 하나요?
> * [ ] 낼은 프로필 ui 뜯어고쳐야할듯
Contributor guide
No contributing guide indexed for this repository
Research direction
This issue is a development log describing completed home-screen UI work and map-marker handling, but it names no source files, tests, or entry points. Review the related project history before starting; no concrete change or completion criterion is defined here.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 10/100