Home

facebook/react

Status:Indexed
Analyzed 3d ago240K+ starsJavaScript

The library for web and native user interfaces.

Back to Pull Requests
#35184Open
Moderate Review

[compiler] Ignore ESLint suppressions when ValidateMemoDeps enabled

by josephsavonaNov 21, 2025
View on GitHub

Summary

This pull request adjusts the React compiler's behavior to correctly handle ESLint suppressions when validating memoization dependencies. Previously, any ESLint suppression would cause the compiler to skip validation, even if the suppression was unrelated to memoization. Now, it selectively ignores suppressions for memoization checks when compiler-level hook validation is enabled, allowing for more accurate and efficient memoization analysis.

Changes

+126 additions-3 deletions

Impact Areas

CompilerMemoizationLinting Integration