-
-
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
[TextareaAutosize] Prevent "Maximum update depth exceeded" #19743
[TextareaAutosize] Prevent "Maximum update depth exceeded" #19743
Conversation
Details of bundle changes.Comparing: 08e7bf5...3224f96
|
@SofianeDjellouli The motivation of the proposed solution was to bound the number of rerendering, to void a layout instability to crash the whole application. How does the change relate to it? |
@oliviertassinari By setting |
@SofianeDjellouli Do you have a reproduction for this problem? I really think that we should first focus on scoping the potential scale of the worth case, from crashing the app to a wrong display. Then we could look into how we can better handle IE 11. Would it work for you? |
@oliviertassinari Which problem do you want to reproduce? I think that with this change, it prevents the app from crashing and it handles IE 11. |
@SofianeDjellouli The problem this change fix :). Is it related to the stackblitz reproduction provided in #17672? |
@SofianeDjellouli I have updated the pull request with the bounding approach I was proposing. Could you have a look at it :). Does it solve your problem? |
8b99f6f
to
3224f96
Compare
I'm going ahead with the bounding logic. We should be able to keep iterate on it :). |
This approach may solve the issue although I think it's more complicated that what I was proposing. |
Hi,
This is a fix for this issue. It seems that adding an empty array of dependencies to useEnhancedEffect fixes it.
Closes #17672