mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
56efc65e58
Note that this only fixes things for newer versions of React (e.g. 18 alpha). Older versions will remain broken because there's not a good way to read the most recent context value for a location in the tree after render has completed. This is because React maintains a stack of context values during render, but by the time DevTools is called– render has finished and the stack is empty.