Back to Pull RequestsView on GitHub
#35186Open
Moderate Review
[compiler] Allow manual dependencies to have different optionality than inferred deps
by josephsavona•Nov 21, 2025
Summary
This PR adjusts React's compiler to allow users to specify different optionality for manual dependencies compared to how they are inferred. This change aims to align dependency inference with manual memoization logic, prioritizing memoization correctness over strict type checking.
Changes
+326 additions-42 deletions
Impact Areas
CompilerMemoizationDependency Inference