Skip to content
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

로딩바 깜빡이는 이슈 해결 #308

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Conversation

bomi8489
Copy link
Contributor

@bomi8489 bomi8489 commented Jul 2, 2024

📑 이슈 번호

#307

🚧 구현 내용

기존의 로딩바는 api호출이 있는 컴포넌트가 렌더링 될 때마다 잠깐의 깜빡이는 현상과 함께 보여집니다. 따라서, 렌더링 되는데 200ms 이상 지연되는 컴퍼넌트에만 로딩바가 보여질 수 있게 DeferedComponent를 추가하여 모든 로딩바 컴포넌트를 감싸주었습니다.

기존

loading

변경 후

  1. api 호출에 200ms 미만으로 걸릴 시
    fast
  1. api 호출에 200ms 이상으로 걸릴 시 (네트워크 빠른3G 설정)
    lazy

🚨 특이 사항

로딩바 보다 스켈레톤 UI를 보여주는게 좀 더 트렌디하고 괜찮을 것 같다는 생각이 듭니다.

@bomi8489 bomi8489 added the 🔨 Refactor 리팩토링 label Jul 2, 2024
@bomi8489 bomi8489 self-assigned this Jul 2, 2024
@bomi8489 bomi8489 merged commit 7c60506 into develop Jul 2, 2024
1 check passed
@bomi8489 bomi8489 deleted the feature/#307/loading-spinner branch July 2, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Refactor 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant