mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
4a67d539dc723e3353d8aaca3ff065f83a448d8b
#1507 Ensured that declarations of reactive scopes were propagated to parent reactive scopes as necessary to ensure that those declarations would be available at the appropriate block scope. This meant that some scopes that were previously pruned would no longer be pruned. Specifically, an outer scope wo any declarations, but which contained a nested scope _with_ a propagated declaration, would now end up with non-empty declarations and not be pruned. This PR changes to track the declaring scope of each declaration, so we still prune scopes that don't have any of their own declarations.
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%