-
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
[노철] - to top floating button 구현 #93
Conversation
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.
고생하셨습니다! 👍
제가 overflow 전체에 해놨는데 수정해주셨군요. 감사합니다 ㅎㅎ
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.
와우 너무 잘 짜셨네요 !! 고생 하셨습니다 🤗
src/hooks/useThrottle.ts
Outdated
const throttle = useCallback(() => { | ||
let timer: NodeJS.Timeout | null; | ||
return (callback: () => void, delaySecond = 1) => { | ||
if (timer) return; |
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.
if문 중괄호 생략 가능하더라도 써주시면 좋을 것 같습니다 🤗
if (timer) return; | |
if (timer) { | |
return; | |
} |
…into feat/#12/to-top-foating-button-component
📌 이슈 번호
close #12
🚀 구현 내용
useThrottle 구현
to top floating button 구현
📘 참고 사항