mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
18d4913406
Instead of using the source location to check for hoisting, just stop checking for a given component after we reach it's declaration. By definition all references to it before are (potential) hoisting errors. Note that there could be false positives but that's ok.