[Fix] WhiteboardObjectUseCase 프로필 load 시점 변경 #136
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.
🌁 Background
WhiteboardObjectUseCase init시 프로필을 가져오니까 프로필을 바꾼 후에도 이전 프로필을 가져오는 이슈가 있었습니다.
init시에는 profileRepository만 받고 profile 사용 시에 load할 수 있도록 변경하였습니다.
📱 Screenshot
로직 변경이라 한 기기 테스트 영상만 첨부하겠습니다.

👩💻 Contents
myProfile이 필요한 함수마다 profileRepository에서 profile을 load해서 사용하도록 수정하였습니다.
✅ Testing
화이트보드에서 오브젝트 선택 시 변경된 프로필 이모지로 잘 표시되는지 확인해보세요 !
📝 Review Note
프로필을 load하는 것이 반복된다고 생각이 드는데 ... 그렇다고 초기에 profile를 load 해놓을 순 없어 일단 이렇게 했습니다 .. .. .
더 나은 방법이 있다면 언제든 웰끔