mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
50c3bd9d98906b8544a23e6efda31b235071cfb9
When we calculate the dependencies of a FunctionExpression we were only adding new items if the binding identifier had not been seen yet. That is correct for `capturedIds` since its the set of identifiers, but incorrect for `capturedRefs` since its an array of all the distinct places. This meant that if a function expression referenced multiple properties of the same binding, we'd only record the first one. We now correctly record all of them.
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%