New May 25, 2026

Are the @eslint-react/no-unstable-default-props and @eslint-react/no-unstable-context-value rules still relevant in React 19?

Libraries, Frameworks, etc. All from Newest questions tagged reactjs - Stack Overflow View Are the @eslint-react/no-unstable-default-props and @eslint-react/no-unstable-context-value rules still relevant in React 19? on stackoverflow.com

I noticed that the ESLint React rules no-unstable-default-props and no-unstable-context-value are disabled by default. They seem to be useful rules regarding avoiding unnecessary re-renders through using 'use memo' or useMemo().

The release of React 19 in December 2024 introduced the React Compiler, which automatically handles memoization. However, the useMemo documentation page is not clear regarding which situations it is still relevant in. It merely says that React Compiler “reduced the need for manual useMemo calls” before listing all the use cases of useMemo as per the documentation for older React versions. While searching online, I found that useMemo is “rarely” required, but it is not clear exactly when.

So, is useMemo still required in the situations where the “no-unstable-default-props” and “no-unstable-context-value” rules would fire?

Scroll to top