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

[core] Extract useRippleHandler outside of ButtonBase #44591

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

albarv340
Copy link
Contributor

Suggested fix for #42564 with ButtonBase.js

This solves the invalid-hook-call-warning ESLint warning with the useRippleHandler hook.

There are still ref.current ESLint warnings with the current version of eslint-plugin-react-compiler, but when eslint-plugin-react-compiler is updated to the newest version, these are gone. From our understanding of the ESLint warning, it is a false positive, so the newer version is correct while the current one is not.

Co-authored-by: wilhelmlofsten <wilhelmlofsten@users.noreply.github.com>
@mui-bot
Copy link

mui-bot commented Nov 28, 2024

Netlify deploy preview

https://deploy-preview-44591--material-ui.netlify.app/

Bundle size report

Details of bundle changes (Toolpad)
Details of bundle changes

Generated by 🚫 dangerJS against cf54828

@aarongarciah aarongarciah added the core Infrastructure work going on behind the scenes label Nov 28, 2024
@aarongarciah
Copy link
Member

Hi @albarv340, is this warning affecting your project in some way? We kinda paused the progress on #42564 until we have a clearer picture on how we'll be adopting the React Compiler (if we adopt it).

@albarv340
Copy link
Contributor Author

Hi @aarongarciah, this warning is not affecting any project of ours in any way, so there is no hurry. We didn't see anywhere that the progress was paused, so we deemed by the "ready to take" label that we could go ahead and attempt a solution.

@aarongarciah aarongarciah changed the title Extract useRippleHandler outside of ButtonBase [core] Extract useRippleHandler outside of ButtonBase Nov 28, 2024
@aarongarciah aarongarciah requested review from romgrk and removed request for aarongarciah November 29, 2024 08:50
@aarongarciah aarongarciah merged commit ac1f902 into mui:master Dec 2, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants