This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support
editorKey
prop on <Editor />
allows callers of <Editor /> to pass a custom `editorKey` to a draft instance. This fixes universal rendering mismatches between client and the server. Instead of generating a random key when the component initializes, it waits for a custom one. If one is not passed, its key is empty until it renders and then it receives a random one when mounted if one was not passed in as a prop.
- Loading branch information
Showing
2 changed files
with
21 additions
and
9 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