Fix#144: 프로필 등록 모달이 제대로 열리지 않는 현상 수정 #159
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.
🖇️ 연결 된 이슈
🆕 기능 추가
useOnMountAnimation커스텀 훅을 구현하였습니다initialStyles), 애니메이션 스타일(animationStyles), transition 옵션을 파라미터로 받아 애니메이션이 적용될ref를 반환합니다📝 추가 사항
useInitialStyles훅에서 초기 스타일이 적용된 이후, 바로useEffect에서 스타일이 적용되기 때문에 애니메이션이 제대로 적용되지 않는 문제가 발생하였습니다 (useEffect는 콜스택에 바로 푸시됩니다)useOnMountAnimation훅을 사용해requestAnimaionFrame을 사용하여 콜스택에 바로 푸시되는것이 아닌, 브라우저의 렌더링 사이클에 맞춰 다음 애니메이션 프레임 전에 실행되도록 예약하도록 수정하였습니다