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] Fix eslint-plugin-react-compiler issues in usePagination tests #43946

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

wilhelmlofsten
Copy link
Contributor

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.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Sep 30, 2024
@mui-bot
Copy link

mui-bot commented Sep 30, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 3f979c8

@wilhelmlofsten
Copy link
Contributor Author

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)
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Sep 30, 2024
@aarongarciah aarongarciah self-assigned this Oct 1, 2024
@aarongarciah aarongarciah changed the title [core] Fix eslint-plugin-react-compiler issues - usePagination.test.js file [core] Fix eslint-plugin-react-compiler issues in usePagination tests Oct 1, 2024
@aarongarciah aarongarciah merged commit f8836b7 into mui:master Oct 1, 2024
19 checks passed
@zannager zannager added the core Infrastructure work going on behind the scenes label Oct 3, 2024
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