-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add: room diff calculation #770
Conversation
✅ Deploy Preview for taxi-dev-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
props.rooms && | ||
localRooms?.length && | ||
(props.rooms.length !== localRooms.length || | ||
JSON.stringify(props.rooms) !== JSON.stringify(localRooms.length)) |
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.
잉 JSON.stringify(props.rooms) !== JSON.stringify(localRooms.length)
이거 뭐죠...???
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.
엥 오타인듯 하네요 죄송합니다ㅜㅠ
useEffect(() => { | ||
const interval = setInterval(fetchAllRooms, 1000 * 60 * 5); | ||
const interval = setInterval(fetchAllRooms, 1000 * 10); |
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.
10초마다 backend에 API request 를 날리는 군요 ㅜㅜㅜ
우리 서버 힘들겠군.. ㅜ
useSWR 이나 useQuery 쓰면 인터벌 하게 API 값 갱신하는 것 수동으로 안해줘도 될듯요?
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.
이걸로 변경해보겠습니다!
…om and Home pages
Summary
It closes #768
Images or Screenshots
Further Work