[Feat] 북스냅 검색 UI 변경 및 최근 검색어 누르면 검색창에 반영 #71
Merged
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.
🔥 Issues
#33
✅ What to do
📄 Description
🤔 Considerations
최근검색어 눌러도 헤더에 반영되지 않는 문제
searchWord상태로만 설정하고, 이후에는 갱신하지 않아 상태가 고정되는 구조였기 때문스크롤 바닥 시 최상단으로 튀는 문제
setReview([])등의 렌더 트리 변경이 원인이라 추정했으나, 실제 원인은getReviews()가 중복 호출되며 불필요한 렌더링이 발생한 것🛠️ Improvements to Make
개선할 사항
👀 References