Skip to content

[eslint-plugin-react-hooks] Disallow Hooks in memo comparators - #38421

Open
cvasingh wants to merge 1 commit into
react:mainfrom
cvasingh:fix/rules-of-hooks-memo-comparator
Open

cvasingh wants to merge 1 commit into
react:mainfrom
cvasingh:fix/rules-of-hooks-memo-comparator

Conversation

@cvasingh

@cvasingh cvasingh commented Nov 28, 2026 •

Copy link
Copy Markdown

How did you test this change?

  • Reproduced Invalid hook call in a React.memo comparator on a prop update in React 19.3.1.
  • Confirmed the new lint cases failed in all 24 ESLint/parser combinations before the fix.
  • Ran all four React Hooks Jest suites after the fix. All 5,124 tests passed.
  • ESLint and Prettier passed.

@meta-cla meta-cla Bot added the CLA Signed label Nov 28, 2026
@github-actions

Copy link
Copy Markdown

A size report will appear here when the build finishes.

Generated by sizebot against 3098c66

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant