mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
445baf9ae4
Extends the validation that effect deps are memoized to handle an additional case that @gsathya pointed out: when a dependency has a reactive scope but that scope ends up being pruned. We track reactive scopes which actually exist in the ReactiveFunction, and reject useEffect deps that have an associated reactive scope but where that scope does not exist (bc it got pruned).