Skip to content

Conversation

karlhorky
Copy link
Contributor

From the examples, it appears that the react-hooks/use-memo rule validates for useMemo() with a return value, not without.

cc @poteto fix for small error in #7986

Alternatives considered

I first considered wording it as a double negative:

Validates against usage of the `useMemo` hook without a return value.

But that seemed more confusing, so I went with flipping to a positive.

Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@poteto
Copy link
Member

poteto commented Oct 1, 2025

Thanks!

@poteto poteto merged commit c60922f into reactjs:main Oct 1, 2025
8 checks passed
@karlhorky
Copy link
Contributor Author

Glad to help, thanks for the review and merge!

@karlhorky karlhorky deleted the patch-1 branch October 1, 2025 06:18
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.

2 participants