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

fix: performance by removing lodash by react-fast-compare #17062

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

riddhybansal
Copy link
Contributor

@riddhybansal riddhybansal commented Jul 29, 2024

Closes #17061

This is use react-fast-compare to compare the elements and other things, use lodash.isEqual will hurt performance issue from: facebook/react#19811

Changelog

Changed

  • replace the lodash.isequal with react-fast-compare to improve performance

Testing / Reviewing

this is just a 3rd party package replacement, we just need to make sure the multiselect and filterable multiselect can be rendered properly.

@riddhybansal riddhybansal requested a review from a team as a code owner July 29, 2024 16:28
Copy link

netlify bot commented Jul 30, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5ebf429
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/66a885e067ae590008a4c31a
😎 Deploy Preview https://deploy-preview-17062--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jul 30, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 5ebf429
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/66a885e042d72d00089cf7e9
😎 Deploy Preview https://deploy-preview-17062--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@riddhybansal riddhybansal added this pull request to the merge queue Jul 30, 2024
Merged via the queue into carbon-design-system:main with commit d2651f2 Jul 30, 2024
22 checks passed
@riddhybansal riddhybansal deleted the react-fast branch July 30, 2024 14:03
@carbon-automation
Copy link
Contributor

Hey there! v11.63.0 was just released that references this issue/PR.

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

Successfully merging this pull request may close these issues.

Replace isEqual with react-fast-compare
4 participants