Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks to @conorcussell for kicking this off in #964!
If anyone can test this branch to double-check my work, that would be super appreciated!
This removes the
isNative
flag from Slate, with seemingly zero performance reprecutions! 🎉 Instead of spending a significant amount of time calculating things inonBeforeInput
, it now spends an equivalent-ish amount of time inrender
andupdateSelection
. Previously these two were being skipped for "native" updates.As far as I can tell the performance benefits from
isNative
are negligible with all of the other performance handling logic we have (memoizing method,shouldComponentUpdate
shortcuts, etc.) so we can remove it. Which seems nice, because it is a cause for lots of headaches UX-wise.I won't merge this for a little bit, because I want to give the recent
0.22
a chance to settle and for plugins to get updated first before doing another breaking change. (Even though it is way less breaking.)Fixes #963