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

feat(react): add react 18 as peerDep, update componentDidMount logic for StrictMode #1364

Merged
merged 1 commit into from
May 16, 2022

Conversation

theiliad
Copy link
Member

@theiliad theiliad commented May 16, 2022

Closes #1357

@theiliad theiliad requested review from Akshat55 and a team as code owners May 16, 2022 17:30
@theiliad theiliad requested review from zvonimirfras and Donisius and removed request for a team May 16, 2022 17:30
Copy link
Member

@dabrad26 dabrad26 left a comment

Choose a reason for hiding this comment

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

Looks great! hasChartBeenInitialized is nice and clean for the StrictMode! Thanks

@theiliad theiliad merged commit 9af452f into carbon-design-system:master May 16, 2022
@theiliad theiliad deleted the react-strict branch May 16, 2022 21:05
@MichaelDimmitt
Copy link

MichaelDimmitt commented Sep 6, 2022

@theiliad , do we still need to disable strict mode with this ?
I see that it is in the codebase but how do you implement it from a functional component importing a chart?

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.

[Bug]: Carts render twice when React Strict Mode is on
3 participants