Skip to content

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
@zannager zannager added the internal Behind-the-scenes enhancement. Formerly called “core”. label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Behind-the-scenes enhancement. Formerly called “core”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants