Skip to content
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

Merged
merged 20 commits into from
Aug 5, 2022
Merged

React 18 #1195

merged 20 commits into from
Aug 5, 2022

Conversation

viet-nv
Copy link
Member

@viet-nv viet-nv commented Aug 3, 2022

Upgrade:

@kyber-ci-bot
Copy link

Auto Deploy Pull Request

Your domain kyberswap-interface-1195.pr.kyberengineering.io has been created.

Notes

  • Please wait up to 60s, we need to pull your image.
  • This domain only validity until this PR is closed

viet-nv and others added 4 commits August 4, 2022 10:30
Signed-off-by: Nam Nguyen <nam.nguyen@kyber.network>
Signed-off-by: Nam Nguyen <nam.nguyen@kyber.network>
@viet-nv viet-nv marked this pull request as ready for review August 4, 2022 04:29
@@ -80,23 +82,19 @@ const MenuFlyout = (props: {
hasArrow?: boolean
}) => {
useOnClickOutside(props.node, props.isOpen && !isMobile ? props.toggle : undefined)
const BrowserStyle = useMemo(
Copy link
Contributor

@hungdoansy hungdoansy Aug 4, 2022

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

Copy link
Member Author

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

Copy link
Contributor

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)

@viet-nv viet-nv merged commit 28c22ec into main Aug 5, 2022
@viet-nv viet-nv deleted the react-18 branch August 5, 2022 04:57
@kyber-ci-bot
Copy link

Auto Deploy Pull Request

Your domain kyberswap-interface-1195.pr.kyberengineering.io has been revoked because: PR closed.

Notes

  • Please re-open the PR to re-create this domain!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants