This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
[Do not merge] fix: Typing too fast in composer results in dropped characters. (by solving over rendering) #4210
Closed
Conversation
This file contains hidden or 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
Contributor
|
Do you have a data than, how much over rendering is saved by this fix? |
Contributor
Author
Contributor
Contributor
Author
Closed
Contributor
|
This branch seems to have a bug that, the updates in one text field will appear in another textField. Repro step
|
Contributor
Author
|
this is not a good approach to avoid re-render by detecting the value change. Because if we want to use some props' value in the onChange, we need to re-create the function by react or use ref |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.


Description
This is a quick fix for TextField over rendering.
The first step is use class shouldComponentUpdate to trigger a render only when the value and error changed.
Task Item
refs #4171
closes #4102
Screenshots