[feat/#138] 카드 뒷면 관심사 삭제/추가 디테일 수정 #139
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.
📌 개요
✨ 작업 내용
✨ PR 포인트
📸 스크린샷/동영상
KakaoTalk_Video_2024-02-12-14-26-41.mp4
관심사 item이 삭제되거나 추가되면 어댑터의 currentList에 변화가 생길 텐데 이를 옵저빙할 수 있는 LivaData를 만들었습니다.
ex) backCardView.currentList.observe(this){} 이런식으로 Activity나 Fragment에서 옵저빙하다가 갱신된 관심사 data list를 콜백으로 받아오면 유저 정보 갱신 api에 넣어서 서버에 반영해주면 됩니다