mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
When `MergeOverlappingReactiveScopes` identified scopes to be merged, it was currently (oops, my bad) updating the _existing_ scope's id and range. Later, PropagateScopeDependencies marks outputs of a scope by updating that identifier's scope instance — so if that scope instance isn't shared, then the output is lost. This PR fixes MergeOverlappingReactiveScopes to correctly update all operands for a scope to have the same scope instance.