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 warning in React 18 when unmounting card #112

Merged
merged 1 commit into from
Aug 31, 2022
Merged

Conversation

gpoitch
Copy link
Collaborator

@gpoitch gpoitch commented Aug 31, 2022

Render null at the card root instead of calling unmount in React 18 to fix a warning in dev mode. This is equivalent as it still triggers the necessary lifecycle hooks. Could do it for the <18 unmount too but rather not mess with it as there are no issues with it.

@gpoitch gpoitch merged commit 068c882 into master Aug 31, 2022
@gpoitch gpoitch deleted the gp/card-unmount branch August 31, 2022 20:28
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.

1 participant