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@17] useLayoutEffect for synchronous cleanup #156

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

thetrevdev
Copy link
Contributor

Summary & motivation

Fixes race condition of adding and removing a card element at the same time in React 17.
#154

Testing & documentation

https://codesandbox.io/s/gracious-dawn-txrz7?file=/src/App.js
Reproduce of existing issue and tested it with fix.

@CLAassistant
Copy link

CLAassistant commented Jan 30, 2021

CLA assistant check
All committers have signed the CLA.

@christopher-stripe
Copy link
Contributor

Thanks for this!

Looks like our CI setup is having trouble, but I pulled the branch locally and all looks well. I'll publish a new patch release shortly.

@christopher-stripe christopher-stripe merged commit e304667 into stripe:master Feb 1, 2021
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.

3 participants