Home

facebook/react

Status:Indexed
Analyzed 3d ago240K+ starsJavaScript

The library for web and native user interfaces.

Back to Pull Requests
#35185Open
Simple Review

[compiler] Allow nonreactive stable types as extraneous deps

by josephsavonaNov 21, 2025
View on GitHub

Summary

This pull request modifies the React compiler to correctly handle cases where non-reactive but stable types are used as dependencies in hooks. It aligns the validation logic for dependencies with existing utility functions, reducing false positives in the exhaustive-deps rule.

Changes

+282 additions-3 deletions

Impact Areas

CompilerLintingHooks