-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Material-UI: too many re-renders. The layout is unstable. #20106
Comments
Please provide a full reproduction test case. This would help a lot 👷 . |
For anyone else that comes across this issue while searching for a solution to the above error, it could be that you are passing in event handlers like this: |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
It's to be noted that there is a regression in React 18 compared to React 17. Compare: React 17.0.2: https://codesandbox.io/s/multilinetextfields-demo-material-ui-forked-nux4ft?file=/index.tsx Something prevents the height to be correct. I have locked this issue so we don't mix two different problems (having the same warning symptoms). This #20106 issue is about finding CSS/DOM cases that lead to a wrong layout computation, not a React 18 regression. Opening a new issue for the latter problem would be great. |
Current Behavior 😯
When typing a large input into a
<TextField>
, eventually the following error pops up in the consoleExpected Behavior 🤔
For this to not happen
Steps to Reproduce 🕹
Just type a lot into the
<TextField>
.Context 🔦
Just trying to write a long input into
<TextField>
.Your Environment 🌎
The text was updated successfully, but these errors were encountered: