-
Notifications
You must be signed in to change notification settings - Fork 454
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
2437 collapsible stamps 2 #2537
Conversation
types/src/index.d.ts
Outdated
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.
Given that this is used only in app, I would suggest to define this in the app only.
if (dropDownOpen) handleClose(); | ||
else handleOpen(); | ||
}; | ||
|
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.
Using an useCallback
( see https://react.dev/reference/react/useCallback ) on any function defined in the component probably makes sense
This fixes: #2437