Skip to content
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

[base] Avoid calling setstate during renders #34916

Merged
merged 1 commit into from Nov 1, 2022
Merged

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Oct 28, 2022

Extracting from #34849 (comment) just in case. I altered the suggestion to have the effect run less frequently, and to have the focus state update in the same render as the disabled state

@Janpot Janpot added the package: base-ui Specific to @mui/base label Oct 28, 2022
@mui-bot
Copy link

mui-bot commented Oct 28, 2022

Messages
📖 Netlify deploy preview: https://deploy-preview-34916--material-ui.netlify.app/

Details of bundle changes

Generated by 🚫 dangerJS against 525a598

@Janpot Janpot changed the title Avoid calling setstate during rendes [base] Avoid calling setstate during renders Oct 28, 2022
@Janpot Janpot marked this pull request as ready for review October 28, 2022 15:37
@Janpot Janpot merged commit df3ac0a into mui:master Nov 1, 2022
daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
feliperli pushed a commit to jesrodri/material-ui that referenced this pull request Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants