Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix modal opening race condition #6238

Merged
merged 1 commit into from
Jun 22, 2021
Merged

Fix modal opening race condition #6238

merged 1 commit into from
Jun 22, 2021

Conversation

germain-gg
Copy link
Contributor

Fixes element-hq/element-web#17716

React 17 is hitting a race condition when a modal is closing and is trying to open another one within the same tick.
A proper long term fix would be using React.createPortal to avoid manually mounting and unmounting new React roots

Co-authored-by: Michael Telatynski <[email protected]>

React 17 is hitting a race condition when a modal is closing and is trying to open another one within the same tick.
A proper long term fix would be using React.createPortal to avoid manually mounting and unmounting new React roots
@germain-gg germain-gg requested a review from a team June 22, 2021 08:54
@germain-gg germain-gg merged commit f56216e into develop Jun 22, 2021
@germain-gg germain-gg deleted the gsouquet/fix-17716 branch June 22, 2021 09:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modals launching other Modals no longer work
2 participants