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

[BUG] 배너 차트 위로 튕기는 현상 #32

Open
jihwan1211 opened this issue Aug 22, 2024 · 0 comments
Open

[BUG] 배너 차트 위로 튕기는 현상 #32

jihwan1211 opened this issue Aug 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jihwan1211
Copy link
Contributor

어떤 문제인가요?

배너 차트 위로 튕기는 현상

문제 발생 상황?

useEffect로 리액트 state를 갱신해주지 않으면 새로운 차트로 넘어갈 때 차트가 위로 튕기는 현상

대처

차트 color를 state로 두고 useEffect에서 price에 따라 색상을 정해주도록 조치함
useState + useEffect를 사용하지 않아도 되면 걷어낼 예정

참고할만한 자료(선택)

@jihwan1211 jihwan1211 added the bug Something isn't working label Aug 22, 2024
@jihwan1211 jihwan1211 self-assigned this Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant