mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
490c204dcf8b648994977e87cd3cc8c995ac8a32
InferReactiveIdentifiers has some extra logic to find identifiers declared in the same scope, and promote non-reactive identifiers to reactive if they appear inside a reactive scope (reactive scope == scope with one or more (reactive) dependencies). Even though the identifier alone might not be technically reactive (have no reactive inputs), it can get re-recreated if the scope re-evaluates. We can now do this during PruneNonReactiveDependencies as we exit out of each scope.
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%