-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Textfield]If one binds onChange event, will re-render all Textfield? #4339
Labels
Comments
Here is the
I think, there is some thing wrong with the assertion on |
Why close this issue? @Yaxian |
@laispace Cause I wrap this component by:
|
oliviertassinari
added
the
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
label
Dec 21, 2022
zannager
added
component: text field
This is the name of the generic UI component, not the React module!
v0.x
and removed
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
labels
Jan 12, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Problem description
I import multiple
<Textfield />
into a parent compoent, and I try bind one of them with onChane event.When I change the input, it seems that all of
shouldComponentUpdate
will return true.Steps to reproduce
Here is the code:
and I change the input of
foo
, the log ofshouldComponentUpdate
:I think it will slow the app :(
Versions
The text was updated successfully, but these errors were encountered: