Skip to content

Avoid unnecessary re-renders#81

Open
ejoebstl wants to merge 1 commit intowangzuo:masterfrom
ejoebstl:patch-2
Open

Avoid unnecessary re-renders#81
ejoebstl wants to merge 1 commit intowangzuo:masterfrom
ejoebstl:patch-2

Conversation

@ejoebstl
Copy link

This update avoids unnecessary re-renders when the current content of the editor is set again as it's html prop. That can happen when a change propagates through a parent component.

Please take note that this is not only a performance issue, but it also throws the cursor position off if it's at the end of a line.

This update avoids unnecessary re-renders when the current content of the editor is set again as it's html prop. That can happen when a change propagates through a parent component.

Please take note that this is not only a performance issue, but it also throws the cursor position off if it's at the end of a line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant