-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(portable-text-editor): Performance refactor
Move props value handling from Edtitable to the main PortableTextEditor class. Refactor withPatches plugin to execute remote patches on debounced state document while typing. Convert remote patches to text operations. That way we don't need a separate selection adjustment, but text operations will make a natural selection handling through the operations. This also helps with performance as we don't need to re-render quite as much (we only need to check consistency when applying a new props value). Remove obsolete selection handlers in the Editable component. Increase the mutation debouncing a bit (500 to 1000 ms) to have less mutations going on while typing.
- Loading branch information
1 parent
51add24
commit bebe934
Showing
23 changed files
with
1,615 additions
and
1,080 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
Oops, something went wrong.