Home

facebook/react

Status:Indexed
Analyzed 3d ago240K+ starsJavaScript

The library for web and native user interfaces.

Back to Pull Requests
#35186Open
Moderate Review

[compiler] Allow manual dependencies to have different optionality than inferred deps

by josephsavonaNov 21, 2025
View on GitHub

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