-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Refactor#186] 탐색 기본 뷰 / 리팩토링 #190
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습다닷~👏
@@ -35,9 +35,9 @@ data class SearchResultResponseDto( | |||
val deadline: String, | |||
) | |||
|
|||
fun toSearchResultEntity(): List<SearchResultModel> { | |||
fun toSearchResultEntity(): List<SearchResult> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 매퍼 파일 만들어주세요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
헉쓰!!~! 이게 검색 뷰 여서 아직 수정하지 않았던 건데 SearchResult는 왜 수정했을까요,,,,,,? ㅜㅜ 여기서 한 번에 하겠습니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NavHostController는 SearchRoute까지 호이스팅하거나 유빈이 코드처럼 아예 Navigation 파일로 호이스팅하는게 좋을 것 같아요!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네엡 감사합니당~!!! 바로 수정해볼게욤
searchViewsList: List<InternshipAnnouncementModel>, | ||
searchScrapsList: List<InternshipAnnouncementModel>, | ||
searchViewsList: List<SearchAnnouncement>, | ||
searchScrapsList: List<SearchAnnouncement>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이렇게 List를 선언하여 컴포저블에 넘겨도 안바뀌는 변수로 취급하지 않아 리컴포지션의 대상이 된다고 하더라고요,,
그래서 Immutable 컬렉션 혹은 Persistent 컬렉션 사용을 권장한다고 합니다! 단순히 .toImmutableList()
, ImmutableList<>
를 사용하면 된답니다~!!
근데 만약 실시간으로 아이템이 추가돼야 하는 리스트의 경우에 Immutable을 사용해도 되는지는 몰루겠네요ㅎㅎ
저도 메이커스 면접에서 배운거라 그냥 공유만 하는겁니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
헉스 소중한 정보 공유 감사감사감사하비다 ㅡㅡ,,.! 해당 모델은 스크랩 많은 뷰 / 조회수 많은 뷰 공고 모델이라서, 뷰에 진입했을 때 기준으로 많이 띄우면 될 것 같고 실시간으로 아이템이 추가되는 건 아니라 Immutable 사용해보겠습ㄴ닷!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오!!! 좋은 정보 감사합니다...!!!!
@@ -1,6 +1,6 @@ | |||
package com.terning.data.dto.response | |||
|
|||
import com.terning.domain.entity.response.SearchResultModel | |||
import com.terning.domain.entity.search.SearchResult |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거 지금 사용되는 내용이 아니라면 삭제해주면 좋을 것 같아요!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
섬세하시닷!~
searchViewsList: List<InternshipAnnouncementModel>, | ||
searchScrapsList: List<InternshipAnnouncementModel>, | ||
searchViewsList: List<SearchAnnouncement>, | ||
searchScrapsList: List<SearchAnnouncement>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오!!! 좋은 정보 감사합니다...!!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다~!! 수고했어요!!!
⛳️ Work Description
📸 Screenshot
뷰 수정 없습니다.
📢 To Reviewers