refactor: #118/DonationsList의 데이터 불러오는 방식 변경 #127
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.
#️⃣ Issue Number
#118
📝 요약(Summary)
PC 사이즈 화면에서 이전 페이지 데이터를 불러올 때의 방식 변경
이전에는 각 페이지의 데이터를 캐싱해서 이전 버튼을 눌렀을 때 현재 페이지의 데이터를 삭제하는 방식으로 이전 페이지의 데이터를 보여줬다.
그런데 이전 페이지의 값을 불러올 때만 캐싱을 사용하는 것이 불필요하다고 판단했다.
그래서 다음 버튼을 눌렀을 때 해당 페이지의 cursor 값(다음 버튼을 눌렀기 때문에 이전 페이지의 corsor 값)을 배열에 저장하고, 이전 버튼을 눌렀을 때 해당 배열에서 이전 페이지의 cursor 값을 찾아 해당 cursor 값을 query로 추가하여 get 리퀘스트 요청을 보내는 방식으로 변경하였다.
불필요하게 배경색 지정한 부분 삭제
body에 midnightBlack으로 배경색이 들어가게 되어서 ListPage와 NotFoundPage에 지정한 배경색을 삭제하였다.
🛠️ PR 유형
어떤 변경 사항이 있나요?