-
Notifications
You must be signed in to change notification settings - Fork 30
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
React 18 #1195
Conversation
Auto Deploy Pull RequestYour domain kyberswap-interface-1195.pr.kyberengineering.io has been created. Notes
|
Signed-off-by: Nam Nguyen <nam.nguyen@kyber.network>
Signed-off-by: Nam Nguyen <nam.nguyen@kyber.network>
@@ -80,23 +82,19 @@ const MenuFlyout = (props: { | |||
hasArrow?: boolean | |||
}) => { | |||
useOnClickOutside(props.node, props.isOpen && !isMobile ? props.toggle : undefined) | |||
const BrowserStyle = useMemo( |
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 think we should keep useMemo. This PR shouldn't update logics where it's not needed to update
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.
this violate rule of hook
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.
This is probably because the SC is used dynamically (inside another component)
Signed-off-by: Nam Nguyen <nam.nguyen@kyber.network>
Auto Deploy Pull RequestYour domain kyberswap-interface-1195.pr.kyberengineering.io has been revoked because: PR closed. Notes
|
Upgrade: