-
-
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
[core] Fix eslint-plugin-react-compiler issues in usePagination tests #43946
Conversation
Netlify deploy previewhttps://deploy-preview-43946--material-ui.netlify.app/ Bundle size report |
Hello @aarongarciah ! Im new to opensource and want to do my first contribution to MUI! I saw an older thread from june (#42564), where I fixed an Eslint issue with usePagination.test.js file and did this PR. Uploaded the yaml file to fix circleci: checkout with pnpm deduplicate accoarding to CONTRIBUTE.md file. Is the PR ready for review or is there additional things to add? Thank you in advance! 😃 |
…Effect hook to update hook after execution, error: Writing to a variable defined outside a component or hook is not allowed. Consider using an effecteslint(react-compiler/react-compiler)
0304623
to
7316795
Compare
Signed-off-by: Aarón García Hervás <[email protected]>
Fixed eslint issue with usePagination.test.js file by using React.useEffect hook to update hook after execution, error: Writing to a variable defined outside a component or hook is not allowed. Consider using an effecteslint(react-compiler/react-compiler).
Ran the test file and had 16 tests passed, so should work :)
Fix for the packages/mui-material/src/usePagination/usePagination.test.js file which the box was unchecked from issue #42564 , where issue #43117 still contained the eslint error.