mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
See the code comments for more, but the basic idea here is that we use the post dominator tree to find the set of basic blocks which are guaranteed reachable in each function. Those are the only blocks where it is safe to call hooks, and we error for hook calls in any other blocks.