mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
c01853d37084c038240e9ca8fba5db45f91fd2db
Summary: Using the change detection code to debug codebases that violate the rules of react is a lot easier when we have a source location corresponding to the value that has changed inappropriately. I didn't see an easy way to track that information in the existing data structures at the point of codegen, so this PR adds locations to identifiers and reactive scopes (the location of a reactive scope is the range of the locations of its included identifiers). I'm interested if there's a better way to do this that I missed! ghstack-source-id:aed5f7eddaPull Request resolved: https://github.com/facebook/react/pull/29658 DiffTrain build for [ec6fe57a50](https://github.com/facebook/react/commit/ec6fe57a5027d60a959493a2e44b6872b8de0ab8)
Please do not delete this branch
Description
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%