mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
Previously we crawled all subtrees, even not-yet-mounted ones, to initialize context values. This was not only unecessary, but it also caused an error to be thrown. This commit adds a test and fixes that behavior.