-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: 사용량 통계 부분 렌더링을 개선한다 #864
Conversation
@@ -53,7 +53,7 @@ const StationDetailsView = ({ station }: StationDetailsViewProps) => { | |||
|
|||
<ChargerList chargers={chargers} stationId={stationId} reportCount={reportCount} /> | |||
|
|||
<CongestionStatistics stationId={stationId} /> | |||
<CongestionStatistics stationId={stationId} chargers={chargers} /> |
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.
chargers를 리액트 쿼리에서 직접 가져오는 것은 어떤가요?! 나중에 CongestionStatistics 컴포넌트를 독립적으로 사용하게 되는 경우엔 chagers를 컴포넌트 내부에서 가져오는 것이 더 좋을 것 같다는 생각이 드네요!
|
||
import type { Charger } from '@type'; | ||
|
||
export const getChargerCountsAndAvailability = (chargers: Charger[]) => { |
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.
무섭네요 ㅠㅠ
📄 Summary
🕰️ Actual Time of Completion
🙋🏻 More
close #863
🚀 Storybook