-
Notifications
You must be signed in to change notification settings - Fork 46
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
**Feature:** TopbarSelect hooks #943
**Feature:** TopbarSelect hooks #943
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.
I absolutely love the decentralized approach you've taken using custom hooks for debounce and event handling. 😍
If we can type these a bit stronger and fill in the READMEs, this would be an incredible contribution to the library.
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.
Let's make things a little more approachable.
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.
Let's add some clarification and documentation please. 🙌
Originally, i created the hooks to mimic the original code, however, now i question if the original implentation to capture window resize and use of debounce was even necessary.
@TejasQ @mpotomin @stereobooster - After testing TopbarSelect- using the example in TopBar readme, on dev-server, I caught a bug where the width was not getting passed to the ContextMenu, unless the window got resized. After playing around with it, I came to the conclusion that its unnecessary, to check the width on window resize. So i removed the hooks. If you agree that these methods are not needed, please let me know if I should remove all 3 of the new hooks from this PR, or not. |
It's tricky because:
Let's remove them. We still have the individual commits that add them in case we need them later. 😄 |
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.
@stereobooster wanna have a look?
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.
Great job, @JoshRosenstein 🎉 !
Summary
Related issue
910
To be tested
Me
localhost:6060
Tester 1
Tester 2