-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react):
useEditor
should not destroy instances that are still m…
…ounted This forces the editor to re-use the editor instance that existed prior to an unmount and remount of the same component. This fixes a bug in `React.StrictMode` introduced with the latest performance updates by PR #5161
- Loading branch information
1 parent
db0d007
commit e2c05f6
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters